Commit 96174caa authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

port export dialog away from kdialog

parent 5e8ce7d0
......@@ -19,6 +19,8 @@
#include "hotkeys_export_widget.h"
#include <QDialogButtonBox>
KHotkeysExportWidget::KHotkeysExportWidget(QWidget *parent)
: QWidget(parent)
{
......@@ -32,13 +34,23 @@ KHotkeysExportWidget::~KHotkeysExportWidget()
KHotkeysExportDialog::KHotkeysExportDialog(QWidget *parent)
: KDialog(parent)
: QDialog(parent)
{
setCaption(i18n("Export Group"));
setButtons(KDialog::Ok | KDialog::Cancel);
setWindowTitle(i18n("Export Group"));
setLayout(new QVBoxLayout);
w = new KHotkeysExportWidget(this);
setMainWidget(w);
layout()->addWidget(w);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok
| QDialogButtonBox::Cancel);
layout()->addWidget(buttonBox);
connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accepted);
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::rejected);
}
......
......@@ -21,7 +21,7 @@
#include "ui_hotkeys_export_widget.h"
#include "kdialog.h"
#include <QDialog>
#include <QUrl>
#include <QWidget>
......@@ -47,7 +47,7 @@ public:
/**
* @author Michael Jansen <kde@michael-jansen.biz>
*/
class KHotkeysExportDialog : public KDialog
class KHotkeysExportDialog : public QDialog
{
public:
KHotkeysExportDialog(QWidget*);
......
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