forked from mirror/openmw-tes3mp
integrated startup icons
This commit is contained in:
parent
7ecf020fcb
commit
2dc3c0ae4f
2 changed files with 9 additions and 6 deletions
|
@ -41,13 +41,13 @@ QWidget *CSVDoc::StartupDialogue::createButtons()
|
|||
mLayout = new QGridLayout (widget);
|
||||
|
||||
/// \todo add icons
|
||||
QPushButton *loadDocument = addButton ("Edit A Content File", QIcon (""));
|
||||
QPushButton *loadDocument = addButton ("Edit A Content File", QIcon (":startup/edit-content"));
|
||||
connect (loadDocument, SIGNAL (clicked()), this, SIGNAL (loadDocument()));
|
||||
|
||||
QPushButton *createAddon = addButton ("Create A New Addon", QIcon (""));
|
||||
QPushButton *createAddon = addButton ("Create A New Addon", QIcon (":startup/create-addon"));
|
||||
connect (createAddon, SIGNAL (clicked()), this, SIGNAL (createAddon()));
|
||||
|
||||
QPushButton *createGame = addButton ("Create A New Game", QIcon (""));
|
||||
QPushButton *createGame = addButton ("Create A New Game", QIcon (":startup/create-game"));
|
||||
connect (createGame, SIGNAL (clicked()), this, SIGNAL (createGame()));
|
||||
|
||||
for (int i=0; i<3; ++i)
|
||||
|
@ -69,7 +69,6 @@ QWidget *CSVDoc::StartupDialogue::createButtons()
|
|||
return widget;
|
||||
}
|
||||
|
||||
#include <QStyle>
|
||||
QWidget *CSVDoc::StartupDialogue::createTools()
|
||||
{
|
||||
QWidget *widget = new QWidget (this);
|
||||
|
@ -81,11 +80,11 @@ QWidget *CSVDoc::StartupDialogue::createTools()
|
|||
QPushButton *config = new QPushButton (widget);
|
||||
|
||||
config->setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
|
||||
config->setIcon (style()->standardIcon (QStyle::SP_FileDialogStart)); /// \todo replace icon
|
||||
config->setIcon (QIcon (":startup/configure"));
|
||||
|
||||
layout->addWidget (config);
|
||||
|
||||
layout->addWidget (new QWidget, 1); // dummy icon; stops buttons from taking all the space
|
||||
layout->addWidget (new QWidget, 1); // dummy widget; stops buttons from taking all the space
|
||||
|
||||
widget->setLayout (layout);
|
||||
|
||||
|
|
|
@ -25,5 +25,9 @@
|
|||
<file>repair.png</file>
|
||||
<file>static.png</file>
|
||||
<file>weapon.png</file>
|
||||
<file alias="startup/create-addon">raster/startup/big/create-addon.png</file>
|
||||
<file alias="startup/create-game">raster/startup/big/new-game.png</file>
|
||||
<file alias="startup/edit-content">raster/startup/big/edit-content.png</file>
|
||||
<file alias="startup/configure">raster/startup/small/configure.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Reference in a new issue