The highlighting color for a TabWidget'selected tab is now themeable.

This commit is contained in:
Cyrille Bollu
2016-05-12 16:33:18 +02:00
parent f201c50208
commit 3549e07e94
3 changed files with 28 additions and 9 deletions

View File

@@ -50,6 +50,11 @@ public:
return( m_activeTab );
}
// Themeability
Q_PROPERTY( QColor tabSelected READ tabSelected WRITE setTabSelected)
QColor tabSelected() const;
void setTabSelected( const QColor & c );
protected:
virtual bool event( QEvent * event );
@@ -78,6 +83,8 @@ private:
quint8 m_tabbarHeight; // The height of the tab bar
quint8 m_tabheight; // The height of the tabs
bool m_usePixmap; // true if the tabs are to be displayed with icons. False for text tabs.
QColor m_tabSelected; // The highlighting color for the selected tab.
} ;
#endif