From 87e45bf866e51193b8dad830ade347e06b8d497c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 5 Apr 2009 16:59:46 +0200 Subject: Modified loading icon displaying, from KDE icon to loading one.. --- src/mainview.cpp | 7 ++++++- src/mainview.h | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 #include #include +#include // Qt Includes #include @@ -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 -- cgit v1.2.1