diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainview.cpp | 7 | ||||
-rw-r--r-- | src/mainview.h | 2 |
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 |