+ use dialog button box where possible, replace old Python icon

This commit is contained in:
wmayer
2014-03-08 15:17:56 +01:00
parent 749eeddd54
commit d2501d4cc8
34 changed files with 1115 additions and 1945 deletions

View File

@@ -45,10 +45,6 @@ DlgInputDialogImp::DlgInputDialogImp( const QString& labelTxt, QWidget* parent,
this->setupUi(this);
label->setText(labelTxt);
QSize bs = buttonOk->sizeHint().expandedTo(buttonCancel->sizeHint());
buttonOk->setFixedSize( bs );
buttonCancel->setFixedSize( bs );
QSize sh = sizeHint();
setType(type);
resize(qMax(sh.width(), 400), 1);
@@ -78,7 +74,7 @@ void DlgInputDialogImp::textChanged( const QString &s )
on = !s.isEmpty();
}
buttonOk->setEnabled( on );
buttonBox->button(QDialogButtonBox::Ok)->setEnabled( on );
}
void DlgInputDialogImp::tryAccept()