Merge pull request #2226 from ts-korhonen/fix-joystick-dialog

Fix Qt joystick dialog
This commit is contained in:
Miran Grča 2022-03-14 22:40:23 +01:00 committed by GitHub
commit e962b80dd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -43,7 +43,7 @@ JoystickConfiguration::JoystickConfiguration(int type, int joystick_nr, QWidget
}
ui->comboBoxDevice->setCurrentIndex(joystick_state[joystick_nr].plat_joystick_nr);
setFixedSize(minimumSizeHint());
layout()->setSizeConstraint(QLayout::SetFixedSize);
}
JoystickConfiguration::~JoystickConfiguration()
@ -197,6 +197,4 @@ void JoystickConfiguration::on_comboBoxDevice_currentIndexChanged(int index) {
++row;
}
setFixedSize(minimumSizeHint());
}

View file

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
<string>Joystick configuration</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0" colspan="2">