Commit eb4fdc04 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent b0680ee4
......@@ -402,8 +402,8 @@ void RichTextComposerActions::createActions(KActionCollection *ac)
}
connect(d->action_list_style, QOverload<int>::of(&KSelectAction::triggered),
this, &RichTextComposerActions::setListStyle);
connect(d->action_list_style, SIGNAL(triggered()),
this, SLOT(slotUpdateMiscActions()));
connect(d->action_list_style, QOverload<bool>::of(&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) {
......
......@@ -47,12 +47,11 @@ public:
public Q_SLOTS:
void setActionsEnabled(bool enabled);
private Q_SLOTS:
private:
void slotUpdateCharFormatActions(const QTextCharFormat &format);
void slotUpdateMiscActions();
void setListStyle(int _styleindex);
private:
class RichTextComposerActionsPrivate;
RichTextComposerActionsPrivate *const d;
};
......
......@@ -47,10 +47,8 @@ public:
int length() const;
void setLength(int);
private Q_SLOTS:
void slotTypeOfLengthChanged(int);
private:
void slotTypeOfLengthChanged(int);
class InsertTableWidgetPrivate;
InsertTableWidgetPrivate *const d;
};
......
......@@ -102,17 +102,6 @@ public Q_SLOTS:
void slotCheckSpelling();
void slotZoomReset();
private Q_SLOTS:
void slotUndoableClear();
void slotSpellCheckerMisspelling(const QString &text, int pos);
void slotSpellCheckerCorrected(const QString &, int, const QString &);
void slotSpellCheckerAutoCorrect(const QString &, const QString &);
void slotSpellCheckerCanceled();
void slotSpellCheckerFinished();
void slotToggleAutoSpellCheck();
void slotLanguageSelected();
void slotAllowTab();
protected:
virtual void addExtraMenuEntry(QMenu *menu, QPoint pos);
void contextMenuEvent(QContextMenuEvent *event) override;
......@@ -137,6 +126,16 @@ Q_SIGNALS:
void spellCheckingCanceled();
private:
void slotUndoableClear();
void slotSpellCheckerMisspelling(const QString &text, int pos);
void slotSpellCheckerCorrected(const QString &, int, const QString &);
void slotSpellCheckerAutoCorrect(const QString &, const QString &);
void slotSpellCheckerCanceled();
void slotSpellCheckerFinished();
void slotToggleAutoSpellCheck();
void slotLanguageSelected();
void slotAllowTab();
void addIgnoreWordsToHighLighter();
bool handleShortcut(QKeyEvent *event);
bool overrideShortcut(QKeyEvent *event);
......
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