]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Adjust paths.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Dec 2010 21:40:06 +0000 (21:40 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Dec 2010 21:40:06 +0000 (21:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@23066 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/parameter_gui/main.cpp
deal.II/contrib/parameter_gui/mainwindow.cpp

index 7616c639f93fead1c016581c9de2ed1fc8980961..851df5bae54a5ea9381be562f47d2a108fc19b0d 100644 (file)
@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
   QApplication app(argc, argv);
 
   QSplashScreen * splash = new QSplashScreen;                  // setup a splash screen
-  splash->setPixmap(QPixmap("./images/logo_dealii_gui.png"));
+  splash->setPixmap(QPixmap(":/images/logo_dealii_gui.png"));
   splash->show();
 
   QTimer::singleShot(3000, splash, SLOT(close()));             // and close it after 3000 ms
index 789a937f30325e8089761f1e6aa9e657e143c3c5..1c621a130d7a2bc52b590d5f0559b14dedb7cde6 100644 (file)
@@ -147,7 +147,7 @@ void MainWindow::about()
   msg_box->setText(trAboutparameterGUIcaption);
   msg_box->setInformativeText(trAboutparameterGUItext);
 
-  QPixmap pm(QLatin1String("./images/logo_dealii_gui_128.png"));
+  QPixmap pm(QLatin1String(":/images/logo_dealii_gui_128.png"));
 
   if (!pm.isNull())
     msg_box->setIconPixmap(pm);
@@ -199,31 +199,31 @@ void MainWindow::closeEvent(QCloseEvent *event)
 void MainWindow::create_actions()
 {
   open_act = new QAction(tr("&Open..."), this);                        // create actions
-  open_act->setIcon(QIcon("./icons/fileopen.png"));            // and set icons
+  open_act->setIcon(QIcon(":/icons/fileopen.png"));            // and set icons
   open_act->setShortcut(Qt::CTRL + Qt::Key_O);                 // set a short cut
   open_act->setStatusTip(tr("Open a XML file"));               // set a status tip
   connect(open_act, SIGNAL(triggered()), this, SLOT(open()));  // and connect
 
   save_act = new QAction(tr("&Save ..."), this);
-  save_act->setIcon(QIcon("./icons/filesave.png"));
+  save_act->setIcon(QIcon(":/icons/filesave.png"));
   save_act->setShortcut(Qt::CTRL + Qt::Key_S);
   save_act->setStatusTip(tr("Save the current XML file"));
   connect(save_act, SIGNAL(triggered()), this, SLOT(save()));
 
   save_as_act = new QAction(tr("&Save As..."), this);
-  save_as_act->setIcon(QIcon("./icons/filesaveas.png"));
+  save_as_act->setIcon(QIcon(":/icons/filesaveas.png"));
   save_as_act->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_Q);
   save_as_act->setStatusTip(tr("Save the current XML file as"));
   connect(save_as_act, SIGNAL(triggered()), this, SLOT(save_as()));
 
   exit_act = new QAction(tr("E&xit"), this);
-  exit_act->setIcon(QIcon("./icons/exit.png"));
+  exit_act->setIcon(QIcon(":/icons/exit.png"));
   exit_act->setShortcut(Qt::CTRL + Qt::Key_Q);
   exit_act->setStatusTip(tr("Exit the parameterGUI application"));
   connect(exit_act, SIGNAL(triggered()), this, SLOT(close()));
 
   about_act = new QAction(tr("&About"), this);
-  about_act->setIcon(QIcon("./icons/idea.png"));
+  about_act->setIcon(QIcon(":/icons/idea.png"));
   about_act->setStatusTip(tr("Show the parameterGUI About box"));
   connect(about_act, SIGNAL(triggered()), this, SLOT(about()));
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.