Commit 4871fc3e authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: firstrun: use QDialogButtonsBox

parent 2662d6ac
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <QGroupBox> #include <QGroupBox>
#include <QCheckBox> #include <QCheckBox>
#include <QLabel> #include <QLabel>
#include <QDialogButtonBox>
#include <QPushButton> #include <QPushButton>
#include <QSettings> #include <QSettings>
...@@ -106,11 +107,12 @@ void FirstRun::buildPrivDialog() ...@@ -106,11 +107,12 @@ void FirstRun::buildPrivDialog()
optionsLayout->addWidget( checkbox2, line++, 0 ); optionsLayout->addWidget( checkbox2, line++, 0 );
#endif #endif
QPushButton *ok = new QPushButton( qtr( "Save and Continue" ) ); QDialogButtonBox *buttonsBox = new QDialogButtonBox( this );
buttonsBox->addButton( qtr( "Save and Continue" ), QDialogButtonBox::AcceptRole );
gLayout->addWidget( ok, 2, 2 ); gLayout->addWidget( buttonsBox, 2, 0, 2, 3 );
CONNECT( ok, clicked(), this, save() ); CONNECT( buttonsBox, accepted(), this, save() );
ok->setFocus(); buttonsBox->setFocus();
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment