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

Qt: firstrun: use QDialogButtonsBox

parent 2662d6ac
......@@ -27,6 +27,7 @@
#include <QGroupBox>
#include <QCheckBox>
#include <QLabel>
#include <QDialogButtonBox>
#include <QPushButton>
#include <QSettings>
......@@ -106,11 +107,12 @@ void FirstRun::buildPrivDialog()
optionsLayout->addWidget( checkbox2, line++, 0 );
#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() );
ok->setFocus();
CONNECT( buttonsBox, accepted(), this, save() );
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