Allow resize of goto dialog (#698)
* Allow resize of Goto dialog * Allow resize of goto dialog
This commit is contained in:
parent
5a5f64e1e1
commit
937a0a44cc
|
@ -10,9 +10,8 @@ GotoDialog::GotoDialog(QWidget* parent, bool allowInvalidExpression)
|
|||
ui->setupUi(this);
|
||||
setModal(true);
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
|
||||
setWindowFlags(Qt::Dialog | Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::MSWindowsFixedSizeDialogHint);
|
||||
setWindowFlags(Qt::Dialog | Qt::WindowSystemMenuHint | Qt::WindowTitleHint);
|
||||
#endif
|
||||
setFixedSize(this->size()); //fixed size
|
||||
//initialize stuff
|
||||
if(!DbgIsDebugging()) //not debugging
|
||||
ui->labelError->setText(tr("<font color='red'><b>Not debugging...</b></font>"));
|
||||
|
|
|
@ -57,6 +57,12 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="buttonOk">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&OK</string>
|
||||
</property>
|
||||
|
@ -64,6 +70,12 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="buttonCancel">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Cancel</string>
|
||||
</property>
|
||||
|
|
Loading…
Reference in New Issue