Make settings dialog layouts less derpy on windows

This commit is contained in:
Petr Mrázek 2013-08-26 04:34:37 +02:00
parent 767c3db297
commit 6793f6b706
4 changed files with 16 additions and 1 deletions

View File

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

View File

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

View File

@ -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()
{ {

View File

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