Commit 0463cfb4 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

KDE 5: Fix invoking help in settings dialog.

parent 8f1824c3
......@@ -27,6 +27,9 @@
#include "kdeconfigdialog.h"
#include "contexthelp.h"
#include "configdialogpages.h"
#if QT_VERSION >= 0x050000
#include <QPushButton>
#endif
/**
* Constructor.
......@@ -53,10 +56,15 @@ KdeConfigDialog::KdeConfigDialog(QWidget* parent, QString& caption,
#if QT_VERSION >= 0x050000
setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel |
QDialogButtonBox::Help);
if (const QDialogButtonBox* buttons = buttonBox()) {
if (QPushButton* helpButton = buttons->button(QDialogButtonBox::Help)) {
connect(helpButton, SIGNAL(clicked()), this, SLOT(slotHelp()));
}
}
#else
setButtons(Ok | Cancel | Help);
#endif
setHelp(QLatin1String("configure-kid3"));
#endif
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment