From f7940d7d1ab9aec017ae724e6c385bacd4d4fc7e Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sun, 8 Sep 2013 11:24:06 +0200 Subject: [PATCH] focus load document button by default in startup window --- apps/opencs/view/doc/startup.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/opencs/view/doc/startup.cpp b/apps/opencs/view/doc/startup.cpp index 50dc4ed33..010fbaf16 100644 --- a/apps/opencs/view/doc/startup.cpp +++ b/apps/opencs/view/doc/startup.cpp @@ -13,7 +13,7 @@ QPushButton *CSVDoc::StartupDialogue::addButton (const QString& label, const QIcon& icon) { - int column = mColumn++; + int column = mColumn--; QPushButton *button = new QPushButton (this); @@ -41,14 +41,14 @@ QWidget *CSVDoc::StartupDialogue::createButtons() mLayout = new QGridLayout (widget); /// \todo add icons - QPushButton *createGame = addButton ("Create A New Game", QIcon ("")); - connect (createGame, SIGNAL (clicked()), this, SIGNAL (createGame())); + QPushButton *loadDocument = addButton ("Edit A Content File", QIcon ("")); + connect (loadDocument, SIGNAL (clicked()), this, SIGNAL (loadDocument())); QPushButton *createAddon = addButton ("Create A New Addon", QIcon ("")); connect (createAddon, SIGNAL (clicked()), this, SIGNAL (createAddon())); - QPushButton *loadDocument = addButton ("Edit A Content File", QIcon ("")); - connect (loadDocument, SIGNAL (clicked()), this, SIGNAL (loadDocument())); + QPushButton *createGame = addButton ("Create A New Game", QIcon ("")); + connect (createGame, SIGNAL (clicked()), this, SIGNAL (createGame())); for (int i=0; i<3; ++i) mLayout->setColumnMinimumWidth (i, mWidth); @@ -94,7 +94,7 @@ QWidget *CSVDoc::StartupDialogue::createTools() return widget; } -CSVDoc::StartupDialogue::StartupDialogue() : mWidth (0), mColumn (0) +CSVDoc::StartupDialogue::StartupDialogue() : mWidth (0), mColumn (2) { setWindowTitle ("Open CS");