Adds activeTabChanged() signal to let API users know about this state

change. It might be use to re-polish style sheets.
This commit is contained in:
mfreiholz
2016-02-26 09:07:19 +01:00
parent 014fb04daf
commit 74f6ba333f
9 changed files with 65 additions and 31 deletions

View File

@@ -118,11 +118,19 @@ private:
bool takeContent(const SectionContent::RefPtr& sc, InternalContentData& data);
private slots:
void onActiveTabChanged();
void onActionToggleSectionContentVisibility(bool visible);
signals:
void orientationChanged();
/*!
* Emits whenever the "isActiveTab" state of a SectionContent changes.
* Whenever the users sets another tab as active, this signal gets invoked
* for the old now inactive tab and the new active tab (the order is unspecified).
*/
void activeTabChanged(const SectionContent::RefPtr& sc, bool active);
private:
QList<SectionWidget*> _sections;
QList<FloatingWidget*> _floatings;