]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove bundled icons from parameter_gui and use system defaults instead
authorMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 5 Nov 2013 23:50:14 +0000 (23:50 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 5 Nov 2013 23:50:14 +0000 (23:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@31557 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/parameter_gui/icons/document.png [deleted file]
deal.II/contrib/parameter_gui/icons/exit.png [deleted file]
deal.II/contrib/parameter_gui/icons/fileclose.png [deleted file]
deal.II/contrib/parameter_gui/icons/fileopen.png [deleted file]
deal.II/contrib/parameter_gui/icons/filesave.png [deleted file]
deal.II/contrib/parameter_gui/icons/filesaveas.png [deleted file]
deal.II/contrib/parameter_gui/icons/folder.png [deleted file]
deal.II/contrib/parameter_gui/icons/folder_open.png [deleted file]
deal.II/contrib/parameter_gui/icons/idea.png [deleted file]
deal.II/contrib/parameter_gui/mainwindow.cpp

diff --git a/deal.II/contrib/parameter_gui/icons/document.png b/deal.II/contrib/parameter_gui/icons/document.png
deleted file mode 100644 (file)
index 8901c3a..0000000
Binary files a/deal.II/contrib/parameter_gui/icons/document.png and /dev/null differ
diff --git a/deal.II/contrib/parameter_gui/icons/exit.png b/deal.II/contrib/parameter_gui/icons/exit.png
deleted file mode 100644 (file)
index b266020..0000000
Binary files a/deal.II/contrib/parameter_gui/icons/exit.png and /dev/null differ
diff --git a/deal.II/contrib/parameter_gui/icons/fileclose.png b/deal.II/contrib/parameter_gui/icons/fileclose.png
deleted file mode 100644 (file)
index 7cb9859..0000000
Binary files a/deal.II/contrib/parameter_gui/icons/fileclose.png and /dev/null differ
diff --git a/deal.II/contrib/parameter_gui/icons/fileopen.png b/deal.II/contrib/parameter_gui/icons/fileopen.png
deleted file mode 100644 (file)
index a79982e..0000000
Binary files a/deal.II/contrib/parameter_gui/icons/fileopen.png and /dev/null differ
diff --git a/deal.II/contrib/parameter_gui/icons/filesave.png b/deal.II/contrib/parameter_gui/icons/filesave.png
deleted file mode 100644 (file)
index 3bc2a37..0000000
Binary files a/deal.II/contrib/parameter_gui/icons/filesave.png and /dev/null differ
diff --git a/deal.II/contrib/parameter_gui/icons/filesaveas.png b/deal.II/contrib/parameter_gui/icons/filesaveas.png
deleted file mode 100644 (file)
index c8d4816..0000000
Binary files a/deal.II/contrib/parameter_gui/icons/filesaveas.png and /dev/null differ
diff --git a/deal.II/contrib/parameter_gui/icons/folder.png b/deal.II/contrib/parameter_gui/icons/folder.png
deleted file mode 100644 (file)
index df2426e..0000000
Binary files a/deal.II/contrib/parameter_gui/icons/folder.png and /dev/null differ
diff --git a/deal.II/contrib/parameter_gui/icons/folder_open.png b/deal.II/contrib/parameter_gui/icons/folder_open.png
deleted file mode 100644 (file)
index f00c1e8..0000000
Binary files a/deal.II/contrib/parameter_gui/icons/folder_open.png and /dev/null differ
diff --git a/deal.II/contrib/parameter_gui/icons/idea.png b/deal.II/contrib/parameter_gui/icons/idea.png
deleted file mode 100644 (file)
index 78c073f..0000000
Binary files a/deal.II/contrib/parameter_gui/icons/idea.png and /dev/null differ
index dbd2f430f0e9d1f856685ae4b7e203a24d4a35c2..e7613967ccf63b52ae193e62f44c41f2b57be683 100644 (file)
@@ -221,32 +221,34 @@ namespace dealii
 
     void MainWindow::create_actions()
     {
+      QStyle * style = tree_widget->style();
+
       open_act = new QAction(tr("&Open..."), this);                            // create actions
-      open_act->setIcon(QIcon(":/icons/fileopen.png"));                                // and set icons
+      open_act->setIcon(style->standardPixmap(QStyle::SP_DialogOpenButton));    // 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(style->standardPixmap(QStyle::SP_DialogSaveButton));
       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(style->standardPixmap(QStyle::SP_DialogSaveButton));
       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(style->standardPixmap(QStyle::SP_DialogCloseButton));
       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(style->standardPixmap(QStyle::SP_FileDialogInfoView));
       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.