diff options
author | Jon Ander Peñalba <jonan88@gmail.com> | 2010-11-22 19:15:27 +0100 |
---|---|---|
committer | Jon Ander Peñalba <jonan88@gmail.com> | 2010-11-22 19:15:27 +0100 |
commit | 6d6e464d2edd278cc1b37b1e000d37207f83448c (patch) | |
tree | 2d4d624614dc420e23f5a1cd9236a872c93e5407 | |
parent | Revert "Make the invariants of MainView explicit" (diff) | |
download | rekonq-6d6e464d2edd278cc1b37b1e000d37207f83448c.tar.xz |
Revert "Remove m_loadingGitPath from MainView"
This reverts commit eba8b17b2514c39897b035a1f5529f5b87a7b114.
This commit wroke the favicon rendering.
-rw-r--r-- | src/mainview.cpp | 8 | ||||
-rw-r--r-- | src/mainview.h | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 3e5a3adb..37a5df0d 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -57,9 +57,6 @@ #include <QtGui/QToolButton> -// loading pixmap path -const QString loadingGifPath = KStandardDirs::locate("appdata" , "pics/loading.mng"); - MainView::MainView(MainWindow *parent) : KTabWidget(parent) , m_widgetBar(new StackedUrlBar(this)) @@ -75,6 +72,9 @@ MainView::MainView(MainWindow *parent) // set mouse tracking for tab previews setMouseTracking(true); + // loading pixmap path + m_loadingGitPath = KStandardDirs::locate("appdata" , "pics/loading.mng"); + // connecting tabbar signals connect(tabBar, SIGNAL(closeTab(int)), this, SLOT(closeTab(int))); connect(tabBar, SIGNAL(mouseMiddleClick(int)), this, SLOT(closeTab(int))); @@ -670,7 +670,7 @@ QLabel *MainView::animatedLoading(int index, bool addMovie) } if (addMovie && !label->movie()) { - QMovie *movie = new QMovie(loadingGifPath, QByteArray(), label); + QMovie *movie = new QMovie(m_loadingGitPath, QByteArray(), label); movie->setSpeed(50); label->setMovie(movie); movie->start(); diff --git a/src/mainview.h b/src/mainview.h index c6babb77..2ba18892 100644 --- a/src/mainview.h +++ b/src/mainview.h @@ -180,6 +180,8 @@ private: StackedUrlBar *m_widgetBar; + QString m_loadingGitPath; + // the new tab button QToolButton *m_addTabButton; |