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, ...@@ -65,6 +65,10 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
{ {
ui.advancedFrame->hide(); ui.advancedFrame->hide();
} }
else
{
ui.advancedCheckBox->setCheckState( Qt::Checked );
}
ui.slaveLabel->hide(); ui.slaveLabel->hide();
ui.slaveText->hide(); ui.slaveText->hide();
...@@ -278,18 +282,23 @@ void OpenDialog::toggleAdvancedPanel() ...@@ -278,18 +282,23 @@ void OpenDialog::toggleAdvancedPanel()
//FIXME does not work under Windows //FIXME does not work under Windows
if (ui.advancedFrame->isVisible()) { if (ui.advancedFrame->isVisible()) {
ui.advancedFrame->hide(); ui.advancedFrame->hide();
#ifndef WIN32
setMinimumHeight(1); setMinimumHeight(1);
resize( width(), mainHeight ); resize( width(), mainHeight );
#endif
} else { } else {
#ifndef WIN32
if( mainHeight == 0 ) if( mainHeight == 0 )
mainHeight = height(); mainHeight = height();
#endif
ui.advancedFrame->show(); ui.advancedFrame->show();
#ifndef WIN32
if( advHeight == 0 ) { if( advHeight == 0 ) {
advHeight = height() - mainHeight; advHeight = height() - mainHeight;
} }
resize( width(), mainHeight + advHeight ); 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