Commit 568ce484 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to new connect api

parent 0dc10b64
......@@ -138,10 +138,9 @@ protected:
void clearDecorator() Q_DECL_OVERRIDE;
void updateHighLighter() Q_DECL_OVERRIDE;
bool processKeyEvent(QKeyEvent *e);
private Q_SLOTS:
void slotTextModeChanged(KPIMTextEdit::RichTextComposer::Mode mode);
private:
void slotTextModeChanged(KPIMTextEdit::RichTextComposer::Mode mode);
void evaluateListSupport(QKeyEvent *event);
void evaluateReturnKeySupport(QKeyEvent *event);
class RichTextComposerPrivate;
......
......@@ -190,12 +190,12 @@ QMenu *RichTextEditor::mousePopupMenu(QPoint pos)
d->speller = new Sonnet::Speller();
}
if (!d->speller->availableBackends().isEmpty()) {
QAction *spellCheckAction = popup->addAction(QIcon::fromTheme(QStringLiteral("tools-check-spelling")), i18n("Check Spelling..."), this, SLOT(slotCheckSpelling()));
QAction *spellCheckAction = popup->addAction(QIcon::fromTheme(QStringLiteral("tools-check-spelling")), i18n("Check Spelling..."), this, &RichTextEditor::slotCheckSpelling);
if (emptyDocument) {
spellCheckAction->setEnabled(false);
}
popup->addSeparator();
QAction *autoSpellCheckAction = popup->addAction(i18n("Auto Spell Check"), this, SLOT(slotToggleAutoSpellCheck()));
QAction *autoSpellCheckAction = popup->addAction(i18n("Auto Spell Check"), this, &RichTextEditor::slotToggleAutoSpellCheck);
autoSpellCheckAction->setCheckable(true);
autoSpellCheckAction->setChecked(checkSpellingEnabled());
popup->addAction(autoSpellCheckAction);
......
......@@ -56,12 +56,11 @@ public:
public Q_SLOTS:
void slotFindNext();
private Q_SLOTS:
private:
void slotFind();
void slotReplace();
void slotHideFindBar();
private:
void init(RichTextEditor *customEditor = Q_NULLPTR);
RichTextEditorWidgetPrivate *const d;
};
......
......@@ -44,10 +44,8 @@ public:
void completeText();
void setExcludeOfCharacters(const QString &excludes);
private Q_SLOTS:
void slotCompletion(const QString &text);
private:
void slotCompletion(const QString &text);
class TextEditorCompleterPrivate;
TextEditorCompleterPrivate *const d;
};
......
......@@ -68,10 +68,8 @@ public Q_SLOTS:
Q_SIGNALS:
void stateChanged(TextToSpeech::State);
private Q_SLOTS:
void slotStateChanged();
private:
void slotStateChanged();
explicit TextToSpeech(QObject *parent = Q_NULLPTR);
friend class TextToSpeechPrivate;
......
......@@ -44,11 +44,9 @@ public Q_SLOTS:
Q_SIGNALS:
void stateChanged(KPIMTextEdit::TextToSpeechWidget::State state);
private Q_SLOTS:
void slotStop();
void slotPlayPause();
private:
void slotPlayPause();
void slotStop();
TextToSpeechActionsPrivate *const d;
};
}
......
......@@ -74,7 +74,7 @@ TextToSpeechConfigWidget::TextToSpeechConfigWidget(QWidget *parent)
layout->addRow(i18n("Voice:"), mVoice);
connect(mVoice, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &TextToSpeechConfigWidget::valueChanged);
QTimer::singleShot(0, this, SLOT(slotUpdateSettings()));
QTimer::singleShot(0, this, &TextToSpeechConfigWidget::slotUpdateSettings);
}
TextToSpeechConfigWidget::~TextToSpeechConfigWidget()
......
......@@ -37,16 +37,15 @@ public:
void setTextToSpeechConfigInterface(AbstractTextToSpeechConfigInterface *interface);
private Q_SLOTS:
void valueChanged();
void slotUpdateSettings();
void slotEngineChanged();
void slotLanguageChanged();
Q_SIGNALS:
void configChanged(bool state);
private:
void valueChanged();
void slotUpdateSettings();
void slotEngineChanged();
void slotLanguageChanged();
void updateVoice();
void updateLocale();
void updateEngine();
......
......@@ -39,10 +39,8 @@ public:
void setVolume(int value) Q_DECL_OVERRIDE;
void reloadSettings() Q_DECL_OVERRIDE;
private Q_SLOTS:
void stateChanged(KPIMTextEdit::TextToSpeechWidget::State state);
private:
void stateChanged(KPIMTextEdit::TextToSpeechWidget::State state);
TextToSpeechInterfacePrivate *const d;
};
}
......
......@@ -55,11 +55,9 @@ public Q_SLOTS:
Q_SIGNALS:
void stateChanged(KPIMTextEdit::TextToSpeechWidget::State state);
private Q_SLOTS:
private:
void slotVolumeChanged(int value);
void slotConfigure();
private:
TextToSpeechWidgetPrivate *const d;
};
}
......
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