Show dialogs on screen center.
--HG-- branch : develop
This commit is contained in:
parent
354d722fd2
commit
cf6260dd26
|
@ -44,6 +44,10 @@ DialogIndividualMeasurements::DialogIndividualMeasurements(VContainer *data, con
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
QRect position = this->frameGeometry();
|
||||||
|
position.moveCenter(QDesktopWidget().availableGeometry().center());
|
||||||
|
move(position.topLeft());
|
||||||
|
|
||||||
{
|
{
|
||||||
const QPushButton *bOk = ui->buttonBox->button(QDialogButtonBox::Ok);
|
const QPushButton *bOk = ui->buttonBox->button(QDialogButtonBox::Ok);
|
||||||
SCASSERT(bOk != nullptr);
|
SCASSERT(bOk != nullptr);
|
||||||
|
|
|
@ -41,6 +41,10 @@ DialogStandardMeasurements::DialogStandardMeasurements(VContainer *data, const Q
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
QRect position = this->frameGeometry();
|
||||||
|
position.moveCenter(QDesktopWidget().availableGeometry().center());
|
||||||
|
move(position.topLeft());
|
||||||
|
|
||||||
{
|
{
|
||||||
const QPushButton *bOk = ui->buttonBox->button(QDialogButtonBox::Ok);
|
const QPushButton *bOk = ui->buttonBox->button(QDialogButtonBox::Ok);
|
||||||
SCASSERT(bOk != nullptr);
|
SCASSERT(bOk != nullptr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user