diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2018-04-26 16:09:16 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2018-05-09 06:00:27 +0000 |
commit | 768f0a6209392e3d6ce248c5b92c12d2fe711976 (patch) | |
tree | 602cd0d0368a0e1c7123b93178702471ff139452 /src/plugins/coreplugin/fancytabwidget.h | |
parent | 4e3fd9363a0840fb9c2cfd97bd96c8c835c3505e (diff) | |
download | qt-creator-768f0a6209392e3d6ce248c5b92c12d2fe711976.tar.gz |
Core: Icon-only option for the mode selection bar
This adds an icon-only mode to the mode selection bar (and action bar).
A newly introduced Action can cycle between icon+text, icon-only and
hidden.
Also, the "Window" Application menu gets a submenu with the three
styles.
Task-number: QTCREATORBUG-18845
Change-Id: I4e0c453f6d920dfbfd795b8b054f6ff392a8700a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/fancytabwidget.h')
-rw-r--r-- | src/plugins/coreplugin/fancytabwidget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/fancytabwidget.h b/src/plugins/coreplugin/fancytabwidget.h index 7ad4b3f4d0..19038add89 100644 --- a/src/plugins/coreplugin/fancytabwidget.h +++ b/src/plugins/coreplugin/fancytabwidget.h @@ -119,6 +119,8 @@ public: void setTabToolTip(int index, const QString &toolTip) { m_tabs[index]->toolTip = toolTip; } QString tabToolTip(int index) const { return m_tabs.at(index)->toolTip; } + void setIconsOnly(bool iconOnly); + int count() const { return m_tabs.count(); } QRect tabRect(int index) const; @@ -130,6 +132,7 @@ private: QRect m_hoverRect; int m_hoverIndex = -1; int m_currentIndex = -1; + bool m_iconsOnly = false; QList<FancyTab *> m_tabs; QSize tabSizeHint(bool minimum = false) const; }; @@ -157,6 +160,8 @@ public: void setTabEnabled(int index, bool enable); bool isTabEnabled(int index) const; + void setIconsOnly(bool iconsOnly); + bool isSelectionWidgetVisible() const; signals: |