forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -133,10 +133,13 @@ private:
|
||||
|
||||
void registerDefaultContainers();
|
||||
void registerDefaultActions();
|
||||
void registerModeSelectorStyleActions();
|
||||
|
||||
void readSettings();
|
||||
void saveWindowSettings();
|
||||
|
||||
void updateModeSelectorStyleMenu();
|
||||
|
||||
ICore *m_coreImpl = nullptr;
|
||||
QStringList m_aboutInformation;
|
||||
Context m_highPrioAdditionalContexts;
|
||||
@@ -179,7 +182,10 @@ private:
|
||||
QAction *m_optionsAction = nullptr;
|
||||
QAction *m_toggleLeftSideBarAction = nullptr;
|
||||
QAction *m_toggleRightSideBarAction = nullptr;
|
||||
QAction *m_toggleModeSelectorAction = nullptr;
|
||||
QAction *m_cycleModeSelectorStyleAction = nullptr;
|
||||
QAction *m_setModeSelectorStyleIconsAndTextAction = nullptr;
|
||||
QAction *m_setModeSelectorStyleHiddenAction = nullptr;
|
||||
QAction *m_setModeSelectorStyleIconsOnlyAction = nullptr;
|
||||
QAction *m_themeAction = nullptr;
|
||||
|
||||
QToolButton *m_toggleLeftSideBarButton = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user