Mercurial > projects > qtd
comparison examples/mainwindows/dockwidgets/mainwindow.d @ 61:a2871e6b8b15
drcc: automatic initialization of resources with program start (disabled with option -no-static-initialize)
demos: resources fixes.
examples: resources fixes.
author | SokoL_SD |
---|---|
date | Tue, 19 May 2009 10:48:30 +0000 |
parents | e78566595089 |
children | a212c97edcd2 |
comparison
equal
deleted
inserted
replaced
60:fbf7881c8b0f | 61:a2871e6b8b15 |
---|---|
213 } | 213 } |
214 | 214 |
215 private: | 215 private: |
216 void createActions() | 216 void createActions() |
217 { | 217 { |
218 newLetterAct = new QAction(new QIcon("images/new.png"), tr("&New Letter"), this); | 218 newLetterAct = new QAction(new QIcon(":images/new.png"), tr("&New Letter"), this); |
219 newLetterAct.setShortcut(tr("Ctrl+N")); | 219 newLetterAct.setShortcut(tr("Ctrl+N")); |
220 newLetterAct.setStatusTip(tr("Create a new form letter")); | 220 newLetterAct.setStatusTip(tr("Create a new form letter")); |
221 newLetterAct.triggered.connect(&this.newLetter); | 221 newLetterAct.triggered.connect(&this.newLetter); |
222 | 222 |
223 saveAct = new QAction(new QIcon("images/save.png"), tr("&Save..."), this); | 223 saveAct = new QAction(new QIcon(":images/save.png"), tr("&Save..."), this); |
224 saveAct.setShortcut(tr("Ctrl+S")); | 224 saveAct.setShortcut(tr("Ctrl+S")); |
225 saveAct.setStatusTip(tr("Save the current form letter")); | 225 saveAct.setStatusTip(tr("Save the current form letter")); |
226 // saveAct.triggered.connect(&save); | 226 // saveAct.triggered.connect(&save); |
227 | 227 |
228 printAct = new QAction(new QIcon("images/print.png"), tr("&Print..."), this); | 228 printAct = new QAction(new QIcon(":images/print.png"), tr("&Print..."), this); |
229 printAct.setShortcut(tr("Ctrl+P")); | 229 printAct.setShortcut(tr("Ctrl+P")); |
230 printAct.setStatusTip(tr("Print the current form letter")); | 230 printAct.setStatusTip(tr("Print the current form letter")); |
231 // printAct.triggered.connect(&print); | 231 // printAct.triggered.connect(&print); |
232 | 232 |
233 undoAct = new QAction(new QIcon("images/undo.png"), tr("&Undo"), this); | 233 undoAct = new QAction(new QIcon(":images/undo.png"), tr("&Undo"), this); |
234 undoAct.setShortcut(tr("Ctrl+Z")); | 234 undoAct.setShortcut(tr("Ctrl+Z")); |
235 undoAct.setStatusTip(tr("Undo the last editing action")); | 235 undoAct.setStatusTip(tr("Undo the last editing action")); |
236 undoAct.triggered.connect(&undo); | 236 undoAct.triggered.connect(&undo); |
237 | 237 |
238 quitAct = new QAction(tr("&Quit"), this); | 238 quitAct = new QAction(tr("&Quit"), this); |