1
0
Fork 0

Allow resize of goto dialog (#698)

* Allow resize of Goto dialog

* Allow resize of goto dialog
This commit is contained in:
Torusrxxx 2016-06-02 04:25:56 +00:00 committed by Duncan Ogilvie
parent 5a5f64e1e1
commit 937a0a44cc
2 changed files with 13 additions and 2 deletions

View File

@ -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>"));

View File

@ -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>&amp;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>&amp;Cancel</string>
</property>