Commit e3a43a41 authored by Pavlov Konstantin's avatar Pavlov Konstantin

QT4: Set advanced checkbox to checked.

Windows: don't do resizing.
Patch by Hannes Domani, ssbssa -AT- yahoo -boring dot- de
parent 82eed9eb
......@@ -65,6 +65,10 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
{
ui.advancedFrame->hide();
}
else
{
ui.advancedCheckBox->setCheckState( Qt::Checked );
}
ui.slaveLabel->hide();
ui.slaveText->hide();
......@@ -278,18 +282,23 @@ void OpenDialog::toggleAdvancedPanel()
//FIXME does not work under Windows
if (ui.advancedFrame->isVisible()) {
ui.advancedFrame->hide();
#ifndef WIN32
setMinimumHeight(1);
resize( width(), mainHeight );
#endif
} else {
#ifndef WIN32
if( mainHeight == 0 )
mainHeight = height();
#endif
ui.advancedFrame->show();
#ifndef WIN32
if( advHeight == 0 ) {
advHeight = height() - mainHeight;
}
resize( width(), mainHeight + advHeight );
#endif
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment