diff 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
line wrap: on
line diff
--- a/examples/mainwindows/dockwidgets/mainwindow.d	Tue May 19 08:55:06 2009 +0000
+++ b/examples/mainwindows/dockwidgets/mainwindow.d	Tue May 19 10:48:30 2009 +0000
@@ -215,22 +215,22 @@
     private:
         void createActions()
         {
-            newLetterAct = new QAction(new QIcon("images/new.png"), tr("&New Letter"), this);
+            newLetterAct = new QAction(new QIcon(":images/new.png"), tr("&New Letter"), this);
             newLetterAct.setShortcut(tr("Ctrl+N"));
             newLetterAct.setStatusTip(tr("Create a new form letter"));
             newLetterAct.triggered.connect(&this.newLetter);
 
-            saveAct = new QAction(new QIcon("images/save.png"), tr("&Save..."), this);
+            saveAct = new QAction(new QIcon(":images/save.png"), tr("&Save..."), this);
             saveAct.setShortcut(tr("Ctrl+S"));
             saveAct.setStatusTip(tr("Save the current form letter"));
             // saveAct.triggered.connect(&save);
 
-            printAct = new QAction(new QIcon("images/print.png"), tr("&Print..."), this);
+            printAct = new QAction(new QIcon(":images/print.png"), tr("&Print..."), this);
             printAct.setShortcut(tr("Ctrl+P"));
             printAct.setStatusTip(tr("Print the current form letter"));
             // printAct.triggered.connect(&print);
 
-            undoAct = new QAction(new QIcon("images/undo.png"), tr("&Undo"), this);
+            undoAct = new QAction(new QIcon(":images/undo.png"), tr("&Undo"), this);
             undoAct.setShortcut(tr("Ctrl+Z"));
             undoAct.setStatusTip(tr("Undo the last editing action"));
             undoAct.triggered.connect(&undo);