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

Allow to access to checkSpelling

parent 78dff80a
......@@ -304,6 +304,17 @@ void SieveEditorMainWidget::slotReplace()
}
}
void SieveEditorMainWidget::slotCheckSpelling()
{
QWidget *w = mTabWidget->currentWidget();
if (w) {
SieveEditorPageWidget *page = qobject_cast<SieveEditorPageWidget *>(w);
if (page) {
page->checkSpelling();
}
}
}
void SieveEditorMainWidget::slotSaveAs()
{
QWidget *w = mTabWidget->currentWidget();
......
......@@ -60,6 +60,8 @@ public Q_SLOTS:
void slotPaste();
void slotCut();
void slotSaveAs();
void slotCheckSpelling();
Q_SIGNALS:
void updateButtons(bool newScriptAction, bool editScriptAction, bool deleteScriptAction, bool desactivateScriptAction);
void updateScriptList();
......
......@@ -206,6 +206,11 @@ void SieveEditorPageWidget::replace()
mSieveEditorWidget->replace();
}
void SieveEditorPageWidget::checkSpelling()
{
mSieveEditorWidget->checkSpelling();
}
void SieveEditorPageWidget::saveAs()
{
mSieveEditorWidget->slotSaveAs();
......
......@@ -60,6 +60,7 @@ public:
void selectAll();
void saveAs();
void checkSpelling();
Q_SIGNALS:
void refreshList();
void scriptModified(bool, SieveEditorPageWidget *);
......
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