summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp8
1 files changed, 4 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();