Commit e6ccc451 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Clean the connect syntax

If you're going to use the new signal added to not need qoverload,
remove qoverload ;)

CCMAIL: sdepiets@gmail.com
parent 4413a416
......@@ -505,7 +505,7 @@ void EditorTab::spellcheck()
m_sonnetChecker = new Sonnet::BackgroundChecker(this);
m_sonnetChecker->changeLanguage(enhanceLangCode(Project::instance()->langCode()));
m_sonnetDialog = new Sonnet::Dialog(m_sonnetChecker, this);
connect(m_sonnetDialog, QOverload<const QString &>::of(&Sonnet::Dialog::spellCheckDone), this, &EditorTab::spellcheckNext);
connect(m_sonnetDialog, &Sonnet::Dialog::spellCheckDone, this, &EditorTab::spellcheckNext);
connect(m_sonnetDialog, &Sonnet::Dialog::replace, this, &EditorTab::spellcheckReplace);
connect(m_sonnetDialog, &Sonnet::Dialog::stop, this, &EditorTab::spellcheckStop);
connect(m_sonnetDialog, &Sonnet::Dialog::cancel, this, &EditorTab::spellcheckCancel);
......
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