Setup toolbar, set icons for actions.

This commit is contained in:
Roman Telezhynskyi 2021-05-20 16:52:14 +03:00
parent d7041cc835
commit e15b370ed4

View File

@ -81,12 +81,24 @@
<addaction name="menuHelp"/> <addaction name="menuHelp"/>
</widget> </widget>
<widget class="QToolBar" name="mainToolBar"> <widget class="QToolBar" name="mainToolBar">
<property name="enabled">
<bool>true</bool>
</property>
<property name="windowTitle">
<string>Menu</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
<attribute name="toolBarArea"> <attribute name="toolBarArea">
<enum>TopToolBarArea</enum> <enum>TopToolBarArea</enum>
</attribute> </attribute>
<attribute name="toolBarBreak"> <attribute name="toolBarBreak">
<bool>false</bool> <bool>false</bool>
</attribute> </attribute>
<addaction name="actionNew"/>
<addaction name="actionOpen"/>
<addaction name="actionSave"/>
</widget> </widget>
<widget class="QStatusBar" name="statusBar"/> <widget class="QStatusBar" name="statusBar"/>
<widget class="QDockWidget" name="dockWidgetCarrousel"> <widget class="QDockWidget" name="dockWidgetCarrousel">
@ -1531,7 +1543,7 @@
</widget> </widget>
<widget class="QToolBar" name="toolBarZoom"> <widget class="QToolBar" name="toolBarZoom">
<property name="windowTitle"> <property name="windowTitle">
<string>toolBar</string> <string>zoom</string>
</property> </property>
<property name="toolButtonStyle"> <property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum> <enum>Qt::ToolButtonTextUnderIcon</enum>
@ -1548,6 +1560,9 @@
<addaction name="actionZoomFitBest"/> <addaction name="actionZoomFitBest"/>
</widget> </widget>
<action name="actionOpen"> <action name="actionOpen">
<property name="icon">
<iconset theme="document-open"/>
</property>
<property name="text"> <property name="text">
<string>&amp;Open</string> <string>&amp;Open</string>
</property> </property>
@ -1556,6 +1571,12 @@
</property> </property>
</action> </action>
<action name="actionSave"> <action name="actionSave">
<property name="enabled">
<bool>true</bool>
</property>
<property name="icon">
<iconset theme="document-save"/>
</property>
<property name="text"> <property name="text">
<string>&amp;Save</string> <string>&amp;Save</string>
</property> </property>
@ -1564,6 +1585,12 @@
</property> </property>
</action> </action>
<action name="actionSaveAs"> <action name="actionSaveAs">
<property name="enabled">
<bool>true</bool>
</property>
<property name="icon">
<iconset theme="document-save-as"/>
</property>
<property name="text"> <property name="text">
<string>Save &amp;As</string> <string>Save &amp;As</string>
</property> </property>
@ -1572,11 +1599,17 @@
</property> </property>
</action> </action>
<action name="actionCloseLayout"> <action name="actionCloseLayout">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text"> <property name="text">
<string>&amp;Close Layout</string> <string>&amp;Close Layout</string>
</property> </property>
</action> </action>
<action name="actionImportRawLayout"> <action name="actionImportRawLayout">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text"> <property name="text">
<string>&amp;Import Raw Layout Data</string> <string>&amp;Import Raw Layout Data</string>
</property> </property>
@ -1595,8 +1628,14 @@
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+Q</string> <string>Ctrl+Q</string>
</property> </property>
<property name="menuRole">
<enum>QAction::QuitRole</enum>
</property>
</action> </action>
<action name="actionNew"> <action name="actionNew">
<property name="icon">
<iconset theme="document-new"/>
</property>
<property name="text"> <property name="text">
<string>&amp;New</string> <string>&amp;New</string>
</property> </property>
@ -1608,11 +1647,20 @@
<property name="text"> <property name="text">
<string>About &amp;Qt</string> <string>About &amp;Qt</string>
</property> </property>
<property name="menuRole">
<enum>QAction::AboutQtRole</enum>
</property>
</action> </action>
<action name="actionAboutPuzzle"> <action name="actionAboutPuzzle">
<property name="icon">
<iconset theme="help-about"/>
</property>
<property name="text"> <property name="text">
<string>About &amp;Puzzle</string> <string>About &amp;Puzzle</string>
</property> </property>
<property name="menuRole">
<enum>QAction::AboutRole</enum>
</property>
</action> </action>
<action name="actionProperties"> <action name="actionProperties">
<property name="checkable"> <property name="checkable">
@ -1624,6 +1672,9 @@
<property name="text"> <property name="text">
<string>Properties</string> <string>Properties</string>
</property> </property>
<property name="menuRole">
<enum>QAction::PreferencesRole</enum>
</property>
</action> </action>
<action name="actionZoomIn"> <action name="actionZoomIn">
<property name="icon"> <property name="icon">
@ -1715,7 +1766,6 @@
</tabstops> </tabstops>
<resources> <resources>
<include location="share/resources/puzzleicon.qrc"/> <include location="share/resources/puzzleicon.qrc"/>
<include location="share/resources/puzzleicon.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>