From 768f0a6209392e3d6ce248c5b92c12d2fe711976 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 26 Apr 2018 16:09:16 +0200 Subject: 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 --- src/plugins/coreplugin/fancytabwidget.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins/coreplugin/fancytabwidget.h') 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 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: -- cgit v1.2.1