aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-21 19:44:12 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-21 19:44:16 (GMT)
commit10b6360da8ac1f9bc25f22f66db2402e919bad38 (patch)
tree54a18464ef030e1cf64f4bab20951d3b65a8b1c4
parentf952657a81e8154afa869fbb6e988f30c9255c06 (diff)
fix help button
-rw-r--r--kate/app/kateconfigdialog.cpp9
-rw-r--r--kate/app/kateconfigdialog.h1
2 files changed, 7 insertions, 3 deletions
diff --git a/kate/app/kateconfigdialog.cpp b/kate/app/kateconfigdialog.cpp
index 548c332..45ed7f6 100644
--- a/kate/app/kateconfigdialog.cpp
+++ b/kate/app/kateconfigdialog.cpp
@@ -37,6 +37,7 @@
#include <KLocalizedString>
#include <KConfigGroup>
+#include <QDesktopServices>
#include <QCheckBox>
#include <QDialogButtonBox>
#include <QFrame>
@@ -55,7 +56,6 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, KTextEditor::View *
setWindowTitle( i18n("Configure") );
setStandardButtons( QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel | QDialogButtonBox::Help );
setObjectName(QStringLiteral("configdialog"));
- // FIXME KF5 setHelp( QString(), KGlobal::mainComponent().componentName() );
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup cgGeneral = KConfigGroup( config, "General" );
@@ -221,6 +221,7 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, KTextEditor::View *
connect(this, SIGNAL(accepted()), this, SLOT(slotApply()));
connect(buttonBox()->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(slotApply()));
+ connect(buttonBox()->button(QDialogButtonBox::Help), SIGNAL(clicked()), this, SLOT(slotHelp()));
connect(this, SIGNAL(currentPageChanged(KPageWidgetItem*,KPageWidgetItem*)),
this, SLOT(slotCurrentPageChanged(KPageWidgetItem*,KPageWidgetItem*)));
m_dataChanged = false;
@@ -389,5 +390,7 @@ void KateConfigDialog::showAppPluginPage(KTextEditor::ConfigPageInterface *confi
}
}
-// kate: space-indent on; indent-width 2; replace-tabs on;
-
+void KateConfigDialog::slotHelp()
+{
+ QDesktopServices::openUrl(QUrl(QStringLiteral("help:/")));
+}
diff --git a/kate/app/kateconfigdialog.h b/kate/app/kateconfigdialog.h
index 7d89e2e..9953ff8 100644
--- a/kate/app/kateconfigdialog.h
+++ b/kate/app/kateconfigdialog.h
@@ -62,6 +62,7 @@ class KateConfigDialog : public KPageDialog
protected Q_SLOTS:
void slotApply();
void slotChanged();
+ void slotHelp();
void slotCurrentPageChanged( KPageWidgetItem *current, KPageWidgetItem *before );