From: Shamus Hammons Date: Fri, 11 Jul 2014 02:50:03 +0000 (-0500) Subject: Added sensible icons to the editor. X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=warehouse-man-deluxe;a=commitdiff_plain;h=98faaadc703b743d2f4e1540e827e19e3c31eeb4 Added sensible icons to the editor. --- diff --git a/res/icon-add.png b/res/icon-add.png new file mode 100644 index 0000000..421242d Binary files /dev/null and b/res/icon-add.png differ diff --git a/res/icon-delete.png b/res/icon-delete.png new file mode 100644 index 0000000..2a2a4cc Binary files /dev/null and b/res/icon-delete.png differ diff --git a/res/icon-down.png b/res/icon-down.png new file mode 100644 index 0000000..ba517fc Binary files /dev/null and b/res/icon-down.png differ diff --git a/res/icon-play.png b/res/icon-play.png new file mode 100644 index 0000000..0e01b87 Binary files /dev/null and b/res/icon-play.png differ diff --git a/res/icon-up.png b/res/icon-up.png new file mode 100644 index 0000000..fc9dabc Binary files /dev/null and b/res/icon-up.png differ diff --git a/res/resources.qrc b/res/resources.qrc index 658fb46..026644e 100644 --- a/res/resources.qrc +++ b/res/resources.qrc @@ -2,6 +2,11 @@ wmd-icon.png bg_marble_g.bmp + icon-up.png + icon-down.png + icon-add.png + icon-delete.png + icon-play.png diff --git a/src/editorwindow.cpp b/src/editorwindow.cpp index 713dc74..df77436 100644 --- a/src/editorwindow.cpp +++ b/src/editorwindow.cpp @@ -19,12 +19,18 @@ EditorWindow::EditorWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Window) { list = new QListWidget; - up = new QPushButton("^"); - down = new QPushButton("v"); - add = new QPushButton("+"); - remove = new QPushButton("-"); - play = new QPushButton(">"); editor = new EditorWidget(parent); + up = new QToolButton; + down = new QToolButton; + add = new QToolButton; + remove = new QToolButton; + play = new QToolButton; + + up->setIcon(QIcon(":/icon-up.png")); + down->setIcon(QIcon(":/icon-down.png")); + add->setIcon(QIcon(":/icon-add.png")); + remove->setIcon(QIcon(":/icon-delete.png")); + play->setIcon(QIcon(":/icon-play.png")); list->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred); // editor->setFocus(); //DISNOWOK diff --git a/src/editorwindow.h b/src/editorwindow.h index c17c7b0..f018a2e 100644 --- a/src/editorwindow.h +++ b/src/editorwindow.h @@ -28,7 +28,7 @@ class EditorWindow: public QWidget private: QListWidget * list; - QPushButton * up, * down, * add, * remove, * play; + QToolButton * up, * down, * add, * remove, * play; EditorWidget * editor; };