From eaca2b0d8af03368a3f7b2c3c63b6688861a6e0d Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 22 Dec 2010 21:40:06 +0000 Subject: [PATCH] Adjust paths. git-svn-id: https://svn.dealii.org/trunk@23066 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/contrib/parameter_gui/main.cpp | 2 +- deal.II/contrib/parameter_gui/mainwindow.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deal.II/contrib/parameter_gui/main.cpp b/deal.II/contrib/parameter_gui/main.cpp index 7616c639f9..851df5bae5 100644 --- a/deal.II/contrib/parameter_gui/main.cpp +++ b/deal.II/contrib/parameter_gui/main.cpp @@ -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 diff --git a/deal.II/contrib/parameter_gui/mainwindow.cpp b/deal.II/contrib/parameter_gui/mainwindow.cpp index 789a937f30..1c621a130d 100644 --- a/deal.II/contrib/parameter_gui/mainwindow.cpp +++ b/deal.II/contrib/parameter_gui/mainwindow.cpp @@ -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())); -- 2.39.5