Make settings dialog layouts less derpy on windows
This commit is contained in:
parent
767c3db297
commit
6793f6b706
@ -34,6 +34,12 @@ InstanceSettings::~InstanceSettings()
|
|||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void InstanceSettings::showEvent ( QShowEvent* ev )
|
||||||
|
{
|
||||||
|
QDialog::showEvent(ev);
|
||||||
|
adjustSize();
|
||||||
|
}
|
||||||
|
|
||||||
void InstanceSettings::on_customCommandsGroupBox_toggled(bool state)
|
void InstanceSettings::on_customCommandsGroupBox_toggled(bool state)
|
||||||
{
|
{
|
||||||
ui->labelCustomCmdsDescription->setEnabled(state);
|
ui->labelCustomCmdsDescription->setEnabled(state);
|
||||||
|
@ -20,7 +20,8 @@ public:
|
|||||||
|
|
||||||
void applySettings();
|
void applySettings();
|
||||||
void loadSettings();
|
void loadSettings();
|
||||||
|
protected:
|
||||||
|
virtual void showEvent ( QShowEvent* );
|
||||||
private slots:
|
private slots:
|
||||||
void on_customCommandsGroupBox_toggled(bool arg1);
|
void on_customCommandsGroupBox_toggled(bool arg1);
|
||||||
void on_buttonBox_accepted();
|
void on_buttonBox_accepted();
|
||||||
|
@ -35,6 +35,11 @@ SettingsDialog::~SettingsDialog()
|
|||||||
{
|
{
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
void SettingsDialog::showEvent ( QShowEvent* ev )
|
||||||
|
{
|
||||||
|
QDialog::showEvent(ev);
|
||||||
|
adjustSize();
|
||||||
|
}
|
||||||
|
|
||||||
void SettingsDialog::updateCheckboxStuff()
|
void SettingsDialog::updateCheckboxStuff()
|
||||||
{
|
{
|
||||||
|
@ -37,6 +37,9 @@ public:
|
|||||||
void applySettings(SettingsObject *s);
|
void applySettings(SettingsObject *s);
|
||||||
void loadSettings(SettingsObject* s);
|
void loadSettings(SettingsObject* s);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void showEvent ( QShowEvent* );
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_instDirBrowseBtn_clicked();
|
void on_instDirBrowseBtn_clicked();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user