Commit 58ae128e authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent eec4ccc0
......@@ -210,7 +210,7 @@ KNoteMiscConfig::KNoteMiscConfig(QWidget *parent)
howItWorks->setContextMenuPolicy(Qt::NoContextMenu);
lay->addStretch();
load();
connect(mDefaultTitle, SIGNAL(textChanged(QString)), SLOT(changed()));
connect(mDefaultTitle, &QLineEdit::textChanged, this, QOverload<>::of(&KCModule::changed));
}
void KNoteMiscConfig::load()
......@@ -317,7 +317,7 @@ KNoteCollectionConfig::KNoteCollectionConfig(QWidget *parent)
QHBoxLayout *lay = new QHBoxLayout(this);
mCollectionConfigWidget = new KNoteCollectionConfigWidget;
lay->addWidget(mCollectionConfigWidget);
connect(mCollectionConfigWidget, SIGNAL(emitChanged(bool)), this, SLOT(changed()));
connect(mCollectionConfigWidget, &KNoteCollectionConfigWidget::emitChanged, this, QOverload<>::of(&KCModule::changed));
load();
}
......
......@@ -718,11 +718,11 @@ void KNote::createActions()
this);
actionCollection()->addAction(QStringLiteral("save_note"), action);
connect(action, &QAction::triggered, this, &KNote::slotSaveAs);
actionCollection()->addAction(KStandardAction::Print, QStringLiteral("print_note"),
this, SLOT(slotPrint()));
action = actionCollection()->addAction(KStandardAction::Print, QStringLiteral("print_note"));
connect(action, &QAction::triggered, this, &KNote::slotPrint);
actionCollection()->addAction(KStandardAction::PrintPreview, QStringLiteral("print_preview_note"),
this, SLOT(slotPrintPreview()));
action = actionCollection()->addAction(KStandardAction::PrintPreview, QStringLiteral("print_preview_note"));
connect(action, &QAction::triggered, this, &KNote::slotPrintPreview);
action = new QAction(QIcon::fromTheme(QStringLiteral("configure")), i18n("Preferences..."), this);
actionCollection()->addAction(QStringLiteral("configure_note"), action);
......
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