diff --git a/apps/opencs/view/doc/startup.cpp b/apps/opencs/view/doc/startup.cpp index 010fbaf16..4cc64f2df 100644 --- a/apps/opencs/view/doc/startup.cpp +++ b/apps/opencs/view/doc/startup.cpp @@ -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 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); diff --git a/files/opencs/resources.qrc b/files/opencs/resources.qrc index 321413763..56e25b2c1 100644 --- a/files/opencs/resources.qrc +++ b/files/opencs/resources.qrc @@ -25,5 +25,9 @@ repair.png static.png weapon.png + raster/startup/big/create-addon.png + raster/startup/big/new-game.png + raster/startup/big/edit-content.png + raster/startup/small/configure.png