Skip to content

Commit 4c2c8f2

Browse files
committed
MainWindow: Added Game menu with "New game" and "Exit" items.
WIP on #7.
1 parent ac89d71 commit 4c2c8f2

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

MainWindow.ui

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@
2929
<height>19</height>
3030
</rect>
3131
</property>
32+
<widget class="QMenu" name="menu_Game">
33+
<property name="title">
34+
<string>&amp;Game</string>
35+
</property>
36+
<addaction name="action_NewGame"/>
37+
<addaction name="actionExit"/>
38+
</widget>
39+
<addaction name="menu_Game"/>
3240
</widget>
3341
<widget class="QToolBar" name="mainToolBar">
3442
<attribute name="toolBarArea">
@@ -39,6 +47,22 @@
3947
</attribute>
4048
</widget>
4149
<widget class="QStatusBar" name="statusBar"/>
50+
<action name="action_NewGame">
51+
<property name="text">
52+
<string>&amp;New game</string>
53+
</property>
54+
<property name="shortcut">
55+
<string>Ctrl+N</string>
56+
</property>
57+
</action>
58+
<action name="actionExit">
59+
<property name="text">
60+
<string>E&amp;xit</string>
61+
</property>
62+
<property name="shortcut">
63+
<string>Ctrl+Q</string>
64+
</property>
65+
</action>
4266
</widget>
4367
<layoutdefault spacing="6" margin="11"/>
4468
<resources/>

0 commit comments

Comments
 (0)