[vlc-devel] commit: Qt: toolbar editor, show the saved positionCombo item at start. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Mon Jan 19 12:12:20 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan 19 10:27:33 2009 +0100| [2f7f4a7456878a16c0b37df916be545c9ef22273] | committer: Jean-Baptiste Kempf
Qt: toolbar editor, show the saved positionCombo item at start.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f7f4a7456878a16c0b37df916be545c9ef22273
---
modules/gui/qt4/dialogs/toolbar.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/dialogs/toolbar.cpp b/modules/gui/qt4/dialogs/toolbar.cpp
index 83108b3..f585542 100644
--- a/modules/gui/qt4/dialogs/toolbar.cpp
+++ b/modules/gui/qt4/dialogs/toolbar.cpp
@@ -77,6 +77,8 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
positionCombo = new QComboBox;
positionCombo->addItem( qtr( "Under the Video" ), QVariant( 0 ) );
positionCombo->addItem( qtr( "Above the Video" ), QVariant( 1 ) );
+ positionCombo->setCurrentIndex( positionCombo->findData(
+ getSettings()->value( "MainWindow/ToolbarPos", 0 ).toInt() ) );
mainTboxLayout->addWidget( positionCombo, 0, 2, 1, 1 );
QLabel *line1Label = new QLabel( "Line 1:" );
@@ -134,6 +136,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
/* Buttons */
QDialogButtonBox *okCancel = new QDialogButtonBox;
QPushButton *okButton = new QPushButton( qtr( "Cl&ose" ), this );
+ okButton->setDefault( true );
QPushButton *cancelButton = new QPushButton( qtr( "&Cancel" ), this );
okCancel->addButton( okButton, QDialogButtonBox::AcceptRole );
okCancel->addButton( cancelButton, QDialogButtonBox::RejectRole );
More information about the vlc-devel
mailing list