focus load document button by default in startup window

actorid
Marc Zinnschlag 11 years ago
parent 2d9e9fe3e1
commit f7940d7d1a

@ -13,7 +13,7 @@
QPushButton *CSVDoc::StartupDialogue::addButton (const QString& label, const QIcon& icon) QPushButton *CSVDoc::StartupDialogue::addButton (const QString& label, const QIcon& icon)
{ {
int column = mColumn++; int column = mColumn--;
QPushButton *button = new QPushButton (this); QPushButton *button = new QPushButton (this);
@ -41,14 +41,14 @@ QWidget *CSVDoc::StartupDialogue::createButtons()
mLayout = new QGridLayout (widget); mLayout = new QGridLayout (widget);
/// \todo add icons /// \todo add icons
QPushButton *createGame = addButton ("Create A New Game", QIcon ("")); QPushButton *loadDocument = addButton ("Edit A Content File", QIcon (""));
connect (createGame, SIGNAL (clicked()), this, SIGNAL (createGame())); connect (loadDocument, SIGNAL (clicked()), this, SIGNAL (loadDocument()));
QPushButton *createAddon = addButton ("Create A New Addon", QIcon ("")); QPushButton *createAddon = addButton ("Create A New Addon", QIcon (""));
connect (createAddon, SIGNAL (clicked()), this, SIGNAL (createAddon())); connect (createAddon, SIGNAL (clicked()), this, SIGNAL (createAddon()));
QPushButton *loadDocument = addButton ("Edit A Content File", QIcon ("")); QPushButton *createGame = addButton ("Create A New Game", QIcon (""));
connect (loadDocument, SIGNAL (clicked()), this, SIGNAL (loadDocument())); connect (createGame, SIGNAL (clicked()), this, SIGNAL (createGame()));
for (int i=0; i<3; ++i) for (int i=0; i<3; ++i)
mLayout->setColumnMinimumWidth (i, mWidth); mLayout->setColumnMinimumWidth (i, mWidth);
@ -94,7 +94,7 @@ QWidget *CSVDoc::StartupDialogue::createTools()
return widget; return widget;
} }
CSVDoc::StartupDialogue::StartupDialogue() : mWidth (0), mColumn (0) CSVDoc::StartupDialogue::StartupDialogue() : mWidth (0), mColumn (2)
{ {
setWindowTitle ("Open CS"); setWindowTitle ("Open CS");

Loading…
Cancel
Save