summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-05 16:59:46 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-05 16:59:46 +0200
commit87e45bf866e51193b8dad830ade347e06b8d497c (patch)
tree693c346d966059e86e68a7dfe641b416251407e2
parentFixed no/no close tab confirm messagebox (diff)
downloadrekonq-87e45bf866e51193b8dad830ade347e06b8d497c.tar.xz
Modified loading icon displaying, from KDE icon to loading one..
-rw-r--r--src/mainview.cpp7
-rw-r--r--src/mainview.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 0c39e418..70ce39fc 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -43,6 +43,7 @@
#include <KMessageBox>
#include <KActionCollection>
#include <KDebug>
+#include <KStandardDirs>
// Qt Includes
#include <QtCore>
@@ -61,6 +62,9 @@ MainView::MainView(QWidget *parent)
{
setTabBar(m_tabBar);
+ loadingGitPath = KStandardDirs::locate("appdata" , "pics/loading.gif");
+ kWarning() << loadingGitPath;
+
connect(m_tabBar, SIGNAL(newTab()), this, SLOT(newWebView()));
connect(m_tabBar, SIGNAL(closeTab(int)), this, SLOT(closeTab(int)));
connect(m_tabBar, SIGNAL(cloneTab(int)), this, SLOT(cloneTab(int)));
@@ -523,7 +527,8 @@ void MainView::webViewLoadStarted()
int index = webViewIndex(webView);
if (-1 != index)
{
- setTabIcon(index, KIcon("rekonq"));
+// setTabIcon(index, KIcon("rekonq"));
+ setTabIcon(index, QIcon(loadingGitPath));
}
}
diff --git a/src/mainview.h b/src/mainview.h
index 8652a6e5..f7e1bbb9 100644
--- a/src/mainview.h
+++ b/src/mainview.h
@@ -143,6 +143,8 @@ private:
QCompleter *m_lineEditCompleter;
QStackedWidget *m_lineEdits;
TabBar *m_tabBar;
+
+ QString loadingGitPath;
};
#endif