Commit e4d8ae4e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Not necessary to use qOverload here

parent 52831901
Pipeline #82767 passed with stage
in 9 minutes and 34 seconds
......@@ -320,7 +320,7 @@ void RichTextComposerActions::createActions(KActionCollection *ac)
ac->addAction(QStringLiteral("format_list_style"), d->action_list_style);
}
connect(d->action_list_style, &KSelectAction::indexTriggered, this, &RichTextComposerActions::setListStyle);
connect(d->action_list_style, qOverload<bool>(&QAction::triggered), this, &RichTextComposerActions::slotUpdateMiscActions);
connect(d->action_list_style, &QAction::triggered, this, &RichTextComposerActions::slotUpdateMiscActions);
d->action_paste_quotation = new QAction(i18n("Pa&ste as Quotation"), this);
d->action_paste_quotation->setObjectName(QStringLiteral("paste_quoted"));
if (ac) {
......
......@@ -110,7 +110,7 @@ void RichTextExternalComposer::startExternalEditor()
(*d->externalEditorProcess) << d->extEditorTempFile->fileName();
}
connect(d->externalEditorProcess, qOverload<int, QProcess::ExitStatus>(&KProcess::finished), this, &RichTextExternalComposer::slotEditorFinished);
connect(d->externalEditorProcess, &KProcess::finished, this, &RichTextExternalComposer::slotEditorFinished);
d->externalEditorProcess->start();
if (!d->externalEditorProcess->waitForStarted()) {
d->cannotStartProcess(commandLine);
......
......@@ -81,7 +81,7 @@ public:
width->setEnabled(false);
width->setSuffix(i18n(" px"));
lab->setBuddy(width);
q->connect(width, qOverload<int>(&QSpinBox::valueChanged), q, [this](int val) {
q->connect(width, &QSpinBox::valueChanged, q, [this](int val) {
_k_slotImageWidthChanged(val);
});
hbox->addWidget(lab);
......@@ -96,7 +96,7 @@ public:
height->setEnabled(false);
height->setSuffix(i18n(" px"));
lab->setBuddy(height);
q->connect(height, qOverload<int>(&QSpinBox::valueChanged), q, [this](int val) {
q->connect(height, &QSpinBox::valueChanged, q, [this](int val) {
_k_slotImageHeightChanged(val);
});
hbox->addWidget(lab);
......
Supports Markdown
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