Fix missing mode changed signal on startup

Reverts commit 88fc878aa8
and fixes the original issue differently.
Introduce a currentAboutToChange signal in FancyTabBar that
is passed on via FancyTabWidget to
ModeManager::currentModeAboutToChange.
This avoids the temporary mismatch of selected indices in the
tab bar vs tab widget.

Change-Id: If1a331db5478450d7c57e5908b2bed218e9828a8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Eike Ziller
2019-04-02 16:24:32 +02:00
parent 1d29c46662
commit 9ead3b6289
2 changed files with 5 additions and 2 deletions

View File

@@ -125,6 +125,7 @@ public:
QRect tabRect(int index) const;
signals:
void currentAboutToChange(int index);
void currentChanged(int index);
void menuTriggered(int index, QMouseEvent *event);