<qresource>
<file>wmd-icon.png</file>
<file>bg_marble_g.bmp</file>
+ <file>icon-up.png</file>
+ <file>icon-down.png</file>
+ <file>icon-add.png</file>
+ <file>icon-delete.png</file>
+ <file>icon-play.png</file>
</qresource>
</RCC>
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
private:
QListWidget * list;
- QPushButton * up, * down, * add, * remove, * play;
+ QToolButton * up, * down, * add, * remove, * play;
EditorWidget * editor;
};