summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Riddell <jr@jriddell.org>2016-10-03 15:19:15 (GMT)
committerJonathan Riddell <jr@jriddell.org>2016-10-03 15:19:15 (GMT)
commitb740cfbfd607f8da4ba12fe70a558cfbacad41c0 (patch)
tree9125276ff8e990ee6bd550c9ce511724b8500295
parent790b497bfcb4812377dc315cbd6e2b87138ad439 (diff)
give timer a better name, make on stack instead of pointer
-rw-r--r--app/kipiinterface.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/kipiinterface.cpp b/app/kipiinterface.cpp
index 910c862..d132f3a 100644
--- a/app/kipiinterface.cpp
+++ b/app/kipiinterface.cpp
@@ -210,7 +210,7 @@ struct KIPIInterfacePrivate
QAction * mNoPluginAction;
QAction * mInstallPluginAction;
QPointer<QFileSystemWatcher> mPluginWatcher;
- QTimer * mTimer;
+ QTimer mPluginLoadTimer;
void setupPluginsMenu()
{
@@ -239,8 +239,7 @@ KIPIInterface::KIPIInterface(MainWindow* mainWindow)
d->mLoadingAction = d->createDummyPluginAction(i18n("Loading..."));
d->mNoPluginAction = d->createDummyPluginAction(i18n("No Plugin Found"));
d->mInstallPluginAction = d->createDummyPluginAction(i18nc("@item:inmenu", "Install Plugins"));
- d->mTimer = new QTimer();
- connect(d->mTimer, &QTimer::timeout, this, &KIPIInterface::loadPlugins);
+ connect(&d->mPluginLoadTimer, &QTimer::timeout, this, &KIPIInterface::loadPlugins);
d->setupPluginsMenu();
QObject::connect(d->mMainWindow->contextManager(), SIGNAL(selectionChanged()),
@@ -365,7 +364,7 @@ void KIPIInterface::packageFinished() {
}
d->mPluginMenu->removeAction(d->mInstallPluginAction);
d->mPluginMenu->removeAction(d->mNoPluginAction);
- d->mTimer->start(1000);
+ d->mPluginLoadTimer.start(1000);
}
QList<QAction*> KIPIInterface::pluginActions(KIPI::Category category) const