Diffstat (limited to 'noncore/games/backgammon/playerdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/backgammon/playerdialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/games/backgammon/playerdialog.cpp b/noncore/games/backgammon/playerdialog.cpp index c16f202..0faf7e2 100644 --- a/noncore/games/backgammon/playerdialog.cpp +++ b/noncore/games/backgammon/playerdialog.cpp @@ -1,16 +1,18 @@ #include "playerdialog.h" #include <qgroupbox.h> +#include <qpe/qpeapplication.h> + PlayerDialog::PlayerDialog(QWidget* parent,const char* name,bool modal,WFlags f) :QDialog(parent,name,modal,f) { auto2=false; auto2=true; setCaption("Player Settings"); QGroupBox* player1_box=new QGroupBox("Player 1",this); player1_box->setGeometry(10,30,220,60); manual_button1=new QRadioButton("Human",player1_box); connect(manual_button1,SIGNAL(clicked()),this,SLOT(button_manual1())); @@ -22,25 +24,25 @@ PlayerDialog::PlayerDialog(QWidget* parent,const char* name,bool modal,WFlags f) QGroupBox* player2_box=new QGroupBox("Player 2",this); player2_box->setGeometry(10,150,220,60); manual_button2=new QRadioButton("Human",player2_box); connect(manual_button2,SIGNAL(clicked()),this,SLOT(button_manual2())); manual_button2->setGeometry(10,20,100,20); auto_button2=new QRadioButton("Computer",player2_box); connect(auto_button2,SIGNAL(clicked()),this,SLOT(button_auto2())); auto_button2->setGeometry(110,20,100,20); button2_state(auto2); - showMaximized(); + QPEApplication::showDialog( this ); } PlayerDialog::~PlayerDialog() {} void PlayerDialog::button_manual1() { auto1=false; button1_state(auto1); } |