Commit 471fdbfc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to new connect api

parent 9b9da494
......@@ -61,7 +61,7 @@ QString FileDialog::getSaveFileName(const KUrl& dir, const QString& filter, QWid
// Show an 'append' option in the dialogue.
// Note that the dialogue will take ownership of the QCheckBox.
mAppendCheck = new QCheckBox(i18nc("@option:check", "Append to existing file"), 0);
connect(mAppendCheck, SIGNAL(toggled(bool)), dlg, SLOT(appendToggled(bool)));
connect(mAppendCheck, &QCheckBox::toggled,, &FileDialog::appendToggled);
*append = false;
......@@ -50,8 +50,8 @@ TemplatePickDlg::TemplatePickDlg(KAEvent::Actions type, QWidget* parent)
mOkButton = buttonBox->button(QDialogButtonBox::Ok);
mOkButton->setShortcut(Qt::CTRL | Qt::Key_Return);
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
connect(buttonBox, &QDialogButtonBox::accepted, this, &TemplatePickDlg::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &TemplatePickDlg::reject);
QVBoxLayout* topLayout = new QVBoxLayout(topWidget);
......@@ -73,7 +73,7 @@ TemplatePickDlg::TemplatePickDlg(KAEvent::Actions type, QWidget* parent)
mListView->setWhatsThis(i18nc("@info:whatsthis", "Select a template to base the new alarm on."));
connect(mListView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), SLOT(slotSelectionChanged()));
// Require a real double click (even if KDE is in single-click mode) to accept the selection
connect(mListView, SIGNAL(doubleClicked(QModelIndex)), SLOT(accept()));
connect(mListView, &TemplateListView::doubleClicked, this, &TemplatePickDlg::accept);
slotSelectionChanged(); // enable or disable the OK button
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