summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-30 06:05:19 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-30 06:05:19 (GMT)
commit5786aab193aea07c89c726d958e42ea4d3cba0c8 (patch)
tree7ed729378f3b75d6314cbfb69059d8e7b955a8d1
parenta2edbf77cab30778fe32f2a94daa761880ea7395 (diff)
Allow to show documentation
-rw-r--r--src/configureplugins/configureplugindialog.cpp6
-rw-r--r--src/configureplugins/configureplugindialog.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/configureplugins/configureplugindialog.cpp b/src/configureplugins/configureplugindialog.cpp
index 0fca51e..2496a80 100644
--- a/src/configureplugins/configureplugindialog.cpp
+++ b/src/configureplugins/configureplugindialog.cpp
@@ -23,6 +23,7 @@
#include <QPushButton>
#include <KConfigGroup>
#include <KSharedConfig>
+#include "../util/pimutil.h"
using namespace PimCommon;
@@ -60,6 +61,11 @@ void ConfigurePluginDialog::help()
{
}
+void ConfigurePluginDialog::showHelp(const QString &name, const QString &anchor)
+{
+ PimCommon::Util::invokeHelp(name, anchor);
+}
+
void ConfigurePluginDialog::slotHelpClicked()
{
help();
diff --git a/src/configureplugins/configureplugindialog.h b/src/configureplugins/configureplugindialog.h
index c4b84c9..1a59383 100644
--- a/src/configureplugins/configureplugindialog.h
+++ b/src/configureplugins/configureplugindialog.h
@@ -30,7 +30,9 @@ public:
~ConfigurePluginDialog();
void initLayout();
+
protected:
+ void showHelp(const QString &name, const QString &anchor);
virtual QWidget *createLayout() = 0;
virtual void save() = 0;
virtual void load() = 0;