summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Riddell <jr@jriddell.org>2016-10-03 14:06:00 (GMT)
committerJonathan Riddell <jr@jriddell.org>2016-10-03 14:06:00 (GMT)
commit790b497bfcb4812377dc315cbd6e2b87138ad439 (patch)
tree712c8a24fb1c3d9a85abcaf83a8fb6a7eed010be
parentb80354e6578605db1e2b87eb98e53538200fa22d (diff)
use a lambda for simple slot
-rw-r--r--app/kipiinterface.cpp6
-rw-r--r--app/kipiinterface.h1
2 files changed, 1 insertions, 6 deletions
diff --git a/app/kipiinterface.cpp b/app/kipiinterface.cpp
index 485a014..910c862 100644
--- a/app/kipiinterface.cpp
+++ b/app/kipiinterface.cpp
@@ -348,7 +348,7 @@ void KIPIInterface::loadOnePlugin()
d->mPluginMenu->addAction(d->mInstallPluginAction);
d->mInstallPluginAction->setEnabled(true);
QObject::connect(d->mInstallPluginAction, &QAction::triggered,
- this, &KIPIInterface::slotInstallPlugins);
+ this, [=](){QDesktopServices::openUrl(QUrl(KIPI_PLUGINS_URL));});
d->mPluginWatcher = new QFileSystemWatcher(d->mMainWindow);
d->mPluginWatcher->addPaths(QCoreApplication::libraryPaths());
connect(d->mPluginWatcher, &QFileSystemWatcher::directoryChanged, this, &KIPIInterface::packageFinished);
@@ -358,10 +358,6 @@ void KIPIInterface::loadOnePlugin()
loadingFinished();
}
-void KIPIInterface::slotInstallPlugins() {
- QDesktopServices::openUrl(QUrl(KIPI_PLUGINS_URL));
-}
-
void KIPIInterface::packageFinished() {
if (d->mPluginLoader) {
delete d->mPluginLoader;
diff --git a/app/kipiinterface.h b/app/kipiinterface.h
index 782e0e7..a224960 100644
--- a/app/kipiinterface.h
+++ b/app/kipiinterface.h
@@ -89,7 +89,6 @@ public Q_SLOTS:
private Q_SLOTS:
void slotSelectionChanged();
void slotDirectoryChanged();
- void slotInstallPlugins();
void packageFinished();
void init();
void loadOnePlugin();