summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-05-18 07:25:13 +0200
committerMontel Laurent <[email protected]>2016-05-18 07:25:13 +0200
commit6c046e1c71eb650c96545842cde485845d37beef (patch)
tree4070bd4c149545970000124d076af1ce94a8bb7c
parent77b4900b30aeace045308a3c662f12783ead4e0f (diff)
Forward signal
-rw-r--r--src/ksieveui/editor/sieveeditorwidget.cpp1
-rw-r--r--src/ksieveui/editor/sieveeditorwidget.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ksieveui/editor/sieveeditorwidget.cpp b/src/ksieveui/editor/sieveeditorwidget.cpp
index da8674c..45a4efb 100644
--- a/src/ksieveui/editor/sieveeditorwidget.cpp
+++ b/src/ksieveui/editor/sieveeditorwidget.cpp
@@ -154,6 +154,7 @@ SieveEditorWidget::SieveEditorWidget(bool useMenuBar, QWidget *parent)
connect(mTextModeWidget, &SieveEditorTextModeWidget::undoAvailable, this, &SieveEditorWidget::undoAvailable);
connect(mTextModeWidget, &SieveEditorTextModeWidget::redoAvailable, this, &SieveEditorWidget::redoAvailable);
connect(mTextModeWidget, &SieveEditorTextModeWidget::copyAvailable, this, &SieveEditorWidget::copyAvailable);
+ connect(mTextModeWidget, &SieveEditorTextModeWidget::sieveEditorTabCurrentChanged, this, &SieveEditorWidget::sieveEditorTabCurrentChanged);
if (KSieveUi::EditorSettings::useGraphicEditorByDefault()) {
changeMode(GraphicMode);
} else {
diff --git a/src/ksieveui/editor/sieveeditorwidget.h b/src/ksieveui/editor/sieveeditorwidget.h
index da7a60b..867da67 100644
--- a/src/ksieveui/editor/sieveeditorwidget.h
+++ b/src/ksieveui/editor/sieveeditorwidget.h
@@ -121,6 +121,7 @@ Q_SIGNALS:
void redoAvailable(bool);
void copyAvailable(bool);
void changeModeEditor(bool);
+ void sieveEditorTabCurrentChanged();
private:
void changeSwitchButtonText();
void changeMode(EditorMode mode);