X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=inline;f=modules%2Fgui%2Fqt4%2Fdialogs%2Fpreferences.cpp;h=8346a4df90b2c75d765e38e499c01fc682b0ed00;hb=a210fb1416ee7a82cc17353d07d06bce55afce9c;hp=13a0f076ba4c000402734ea4a32e62a9a1f99a38;hpb=7fe7324def2f0c1e4ded2456c8b52472a61981ad;p=vlc diff --git a/modules/gui/qt4/dialogs/preferences.cpp b/modules/gui/qt4/dialogs/preferences.cpp index 13a0f076ba..8346a4df90 100644 --- a/modules/gui/qt4/dialogs/preferences.cpp +++ b/modules/gui/qt4/dialogs/preferences.cpp @@ -50,6 +50,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) setMaximumHeight( 650 ); setMaximumWidth( 700 ); + /* Create Panels */ tree_panel = new QWidget( 0 ); tree_panel_l = new QHBoxLayout; tree_panel->setLayout( tree_panel_l ); @@ -57,7 +58,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) main_panel_l = new QHBoxLayout; main_panel->setLayout( main_panel_l ); - // Choice for types + /* Choice for types */ types = new QGroupBox( "Show settings" ); types->setAlignment( Qt::AlignHCenter ); QHBoxLayout *types_l = new QHBoxLayout(0); @@ -67,19 +68,20 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) types->setLayout( types_l ); small->setChecked( true ); + /* Tree and panel initialisations */ advanced_tree = NULL; simple_tree = NULL; simple_panel = NULL; advanced_panel = NULL; main_layout->addWidget( tree_panel, 0, 0, 3, 1 ); - main_layout->addWidget( types, 3, 0, 1, 1 ); + main_layout->addWidget( types, 3, 0, 2, 1 ); main_layout->addWidget( main_panel, 0, 1, 4, 1 ); main_layout->setColumnMinimumWidth( 0, 150 ); main_layout->setColumnStretch( 0, 1 ); - main_layout->setColumnStretch( 1,3 ); + main_layout->setColumnStretch( 1, 3 ); main_layout->setRowStretch( 2, 4); @@ -94,7 +96,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) buttonsBox->addButton( cancel, QDialogButtonBox::RejectRole ); buttonsBox->addButton( reset, QDialogButtonBox::ActionRole ); - main_layout->addWidget( buttonsBox, 4, 0, 1 ,3 ); + main_layout->addWidget( buttonsBox, 4, 1, 1 ,2 ); setLayout( main_layout ); BUTTONACT( save, save() );