diff options
Diffstat (limited to 'doc/src/snippets/widgets-tutorial/notepad/notepad.ui')
-rw-r--r-- | doc/src/snippets/widgets-tutorial/notepad/notepad.ui | 167 |
1 files changed, 141 insertions, 26 deletions
diff --git a/doc/src/snippets/widgets-tutorial/notepad/notepad.ui b/doc/src/snippets/widgets-tutorial/notepad/notepad.ui index 950cf718d..59dfce383 100644 --- a/doc/src/snippets/widgets-tutorial/notepad/notepad.ui +++ b/doc/src/snippets/widgets-tutorial/notepad/notepad.ui @@ -6,7 +6,7 @@ <rect> <x>0</x> <y>0</y> - <width>400</width> + <width>524</width> <height>300</height> </rect> </property> @@ -14,46 +14,47 @@ <string>Notepad</string> </property> <widget class="QWidget" name="centralWidget"> - <widget class="QWidget" name=""> - <property name="geometry"> - <rect> - <x>70</x> - <y>0</y> - <width>268</width> - <height>235</height> - </rect> - </property> - <layout class="QVBoxLayout" name="verticalLayout"> - <item> - <widget class="QTextEdit" name="textEdit"/> - </item> - <item> - <widget class="QPushButton" name="quitButton"> - <property name="text"> - <string>Quit</string> - </property> - </widget> - </item> - </layout> - </widget> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QTextEdit" name="textEdit"/> + </item> + </layout> </widget> <widget class="QMenuBar" name="menuBar"> <property name="geometry"> <rect> <x>0</x> <y>0</y> - <width>400</width> - <height>22</height> + <width>524</width> + <height>25</height> </rect> </property> <widget class="QMenu" name="menuFile"> <property name="title"> <string>File</string> </property> + <addaction name="actionNew"/> <addaction name="actionOpen"/> <addaction name="actionSave"/> + <addaction name="actionSave_as"/> + <addaction name="actionPrint"/> + <addaction name="separator"/> + <addaction name="actionExit"/> + </widget> + <widget class="QMenu" name="menuEdit"> + <property name="title"> + <string>Edit</string> + </property> + <addaction name="actionCopy"/> + <addaction name="actionCut"/> + <addaction name="actionPaste"/> + <addaction name="separator"/> + <addaction name="actionUndo"/> + <addaction name="actionRedo"/> + <addaction name="actionFont"/> </widget> <addaction name="menuFile"/> + <addaction name="menuEdit"/> </widget> <widget class="QToolBar" name="mainToolBar"> <attribute name="toolBarArea"> @@ -62,20 +63,134 @@ <attribute name="toolBarBreak"> <bool>false</bool> </attribute> + <addaction name="actionNew"/> + <addaction name="actionOpen"/> + <addaction name="actionSave"/> + <addaction name="actionSave_as"/> + <addaction name="actionPrint"/> + <addaction name="separator"/> + <addaction name="actionCopy"/> + <addaction name="actionCut"/> + <addaction name="actionPaste"/> + <addaction name="actionUndo"/> + <addaction name="actionRedo"/> + <addaction name="actionFont"/> + <addaction name="separator"/> + <addaction name="actionExit"/> </widget> <widget class="QStatusBar" name="statusBar"/> + <action name="actionNew"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/new.png</normaloff>:/new.png</iconset> + </property> + <property name="text"> + <string>New</string> + </property> + </action> <action name="actionOpen"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/open.png</normaloff>:/open.png</iconset> + </property> <property name="text"> <string>Open</string> </property> </action> <action name="actionSave"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/save.png</normaloff>:/save.png</iconset> + </property> <property name="text"> <string>Save</string> </property> </action> + <action name="actionSave_as"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/save_as.png</normaloff>:/save_as.png</iconset> + </property> + <property name="text"> + <string>Save as</string> + </property> + </action> + <action name="actionPrint"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/print.png</normaloff>:/print.png</iconset> + </property> + <property name="text"> + <string>Print</string> + </property> + </action> + <action name="actionExit"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/exit.png</normaloff>:/exit.png</iconset> + </property> + <property name="text"> + <string>Exit</string> + </property> + </action> + <action name="actionCopy"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/copy.png</normaloff>:/copy.png</iconset> + </property> + <property name="text"> + <string>Copy</string> + </property> + </action> + <action name="actionCut"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/cut.png</normaloff>:/cut.png</iconset> + </property> + <property name="text"> + <string>Cut</string> + </property> + </action> + <action name="actionPaste"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/paste.png</normaloff>:/paste.png</iconset> + </property> + <property name="text"> + <string>Paste</string> + </property> + </action> + <action name="actionUndo"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/edit_undo.png</normaloff>:/edit_undo.png</iconset> + </property> + <property name="text"> + <string>Undo</string> + </property> + </action> + <action name="actionRedo"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/edit_redo.png</normaloff>:/edit_redo.png</iconset> + </property> + <property name="text"> + <string>Redo</string> + </property> + </action> + <action name="actionFont"> + <property name="icon"> + <iconset resource="notepad.qrc"> + <normaloff>:/font.png</normaloff>:/font.png</iconset> + </property> + <property name="text"> + <string>Font</string> + </property> + </action> </widget> <layoutdefault spacing="6" margin="11"/> - <resources/> + <resources> + <include location="notepad.qrc"/> + </resources> <connections/> </ui> |