Commit d2738c28 authored by David Jarvie's avatar David Jarvie
Browse files

Tidy

parent d4be1f63
......@@ -26,13 +26,13 @@
#include "templatelistview.h"
#include <KLocalizedString>
#include <KConfigGroup>
#include <QVBoxLayout>
#include <QResizeEvent>
#include <qdebug.h>
#include <KConfigGroup>
#include <QDialogButtonBox>
#include <QPushButton>
#include <qdebug.h>
static const char TMPL_PICK_DIALOG_NAME[] = "TemplatePickDialog";
......@@ -46,16 +46,14 @@ TemplatePickDlg::TemplatePickDlg(KAEvent::Actions type, QWidget* parent)
mainLayout->addWidget(topWidget);
setWindowTitle(i18nc("@title:window", "Choose Alarm Template"));
QDialogButtonBox* buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
mainLayout->addWidget(buttonBox);
mOkButton = buttonBox->button(QDialogButtonBox::Ok);
mOkButton->setDefault(true);
mOkButton->setShortcut(Qt::CTRL | Qt::Key_Return);
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
mainLayout->addWidget(buttonBox);
mOkButton->setDefault(true);
QVBoxLayout* topLayout = new QVBoxLayout(topWidget);
topLayout->setMargin(0);
//QT5 topLayout->setSpacing(spacingHint());
// Display the list of templates, but exclude command alarms if in kiosk mode.
KAEvent::Actions shown = KAEvent::ACT_ALL;
......
......@@ -44,7 +44,7 @@ class TemplatePickDlg : public QDialog
private:
TemplateListModel* mListFilterModel;
TemplateListView* mListView;
QPushButton* mOkButton;
QPushButton* mOkButton;
};
#endif // TEMPLATEPICKDLG_H
......
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