Skip to content

Commit ba3afe7

Browse files
committed
Add menu button
1 parent b869a58 commit ba3afe7

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

SmartTimer/icons/menu.png

2.88 KB
Loading

SmartTimer/mainwindow.ui

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,48 @@
9393
<property name="bottomMargin">
9494
<number>5</number>
9595
</property>
96+
<item>
97+
<spacer name="horizontalSpacer_2">
98+
<property name="orientation">
99+
<enum>Qt::Horizontal</enum>
100+
</property>
101+
<property name="sizeHint" stdset="0">
102+
<size>
103+
<width>40</width>
104+
<height>20</height>
105+
</size>
106+
</property>
107+
</spacer>
108+
</item>
109+
<item>
110+
<widget class="QPushButton" name="menuButton">
111+
<property name="minimumSize">
112+
<size>
113+
<width>30</width>
114+
<height>30</height>
115+
</size>
116+
</property>
117+
<property name="maximumSize">
118+
<size>
119+
<width>30</width>
120+
<height>30</height>
121+
</size>
122+
</property>
123+
<property name="text">
124+
<string/>
125+
</property>
126+
<property name="icon">
127+
<iconset resource="resources.qrc">
128+
<normaloff>:/icons/menu.png</normaloff>:/icons/menu.png</iconset>
129+
</property>
130+
<property name="iconSize">
131+
<size>
132+
<width>30</width>
133+
<height>30</height>
134+
</size>
135+
</property>
136+
</widget>
137+
</item>
96138
<item>
97139
<spacer name="horizontalSpacer_5">
98140
<property name="orientation">

SmartTimer/resources.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
<file>icons/drop-down.png</file>
2222
<file>sounds/Bird.mp3</file>
2323
<file>sounds/Light.mp3</file>
24+
<file>icons/menu.png</file>
2425
</qresource>
2526
</RCC>

SmartTimer/stylesheet.qss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,7 @@ QRadioButton::indicator {
297297
width: 15px;
298298
height: 15px;
299299
}
300+
301+
QPushButton#menuButton {
302+
border: 0px;
303+
}

0 commit comments

Comments
 (0)