summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2015-07-12 00:41:16 +0200
committerAlbert Astals Cid <[email protected]>2015-07-12 00:42:04 +0200
commit915b6acb60258ef3f1971af217f6609f160b7644 (patch)
treee89a00b9ac0ed8f6e483f5d1241dab8395d1d36f
parenta7f8a1bb5bfdc4ad7b7d803947289d5f874e9e2f (diff)
Revert "Port to help"
Seems to breka more things than it does (i.e. help works fine with it and changes to the conf dialog are not saved with it)
-rw-r--r--src/kiriki.cpp9
-rw-r--r--src/kiriki.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/src/kiriki.cpp b/src/kiriki.cpp
index dcdcba3..baedeee 100644
--- a/src/kiriki.cpp
+++ b/src/kiriki.cpp
@@ -35,8 +35,6 @@
#include <QStatusBar>
#include <KToggleAction>
#include <KToolBar>
-#include <KHelpClient>
-#include <QPushButton>
#include "computer.h"
#include "configwidget.h"
#include "lateralwidget.h"
@@ -326,8 +324,6 @@ void kiriki::showPreferences()
KConfigDialog *configDialog = new KConfigDialog(this, "settings", kirikiSettings::self());
configDialog->setFaceType(KConfigDialog::Plain);
configDialog -> addPage(new configWidget(configDialog), QString(), QString());
- configDialog->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help);
- connect(configDialog->button(QDialogButtonBox::Help), &QPushButton::clicked, this, &kiriki::slotHelp);
connect(configDialog, &KConfigDialog::settingsChanged, this, &kiriki::settingsChanged);
configDialog -> exec();
delete configDialog;
@@ -350,11 +346,6 @@ void kiriki::showPreferences()
}
}
-void kiriki::slotHelp()
-{
- KHelpClient::invokeHelp(QString(), QStringLiteral("kiriki"));
-}
-
void kiriki::print()
{
#if 0 //Port to QT5
diff --git a/src/kiriki.h b/src/kiriki.h
index 38db9bd..5bfc4f0 100644
--- a/src/kiriki.h
+++ b/src/kiriki.h
@@ -42,7 +42,6 @@ Q_OBJECT
void playComputer();
void showHint();
void settingsChanged();
- void slotHelp();
private:
void endGame();