[vlc-devel] commit: [Qt] Settings name consistency. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Wed Dec 10 09:15:41 CET 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec 9 21:14:20 2008 +0100| [54b49f6997c366af03faa3b4fefdd1cf3b3dd96b] | committer: Jean-Baptiste Kempf
[Qt] Settings name consistency.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=54b49f6997c366af03faa3b4fefdd1cf3b3dd96b
---
modules/gui/qt4/components/controller.cpp | 10 +++++-----
modules/gui/qt4/dialogs/toolbar.cpp | 20 ++++++++++----------
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index 3cd0583..8e08996 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -796,7 +796,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
QHBoxLayout *controlLayout1 = new QHBoxLayout;
controlLayout1->setSpacing( 0 );
- QString line1 = getSettings()->value( "MainWindow/Controls1",
+ QString line1 = getSettings()->value( "MainWindow/MainToolbar1",
"64;36;37;38;65").toString();
parseAndCreate( line1, controlLayout1 );
@@ -811,7 +811,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
QHBoxLayout *controlLayout2 = new QHBoxLayout;
controlLayout2->setSpacing( 0 );
- QString line2 = getSettings()->value( "MainWindow/Controls2",
+ QString line2 = getSettings()->value( "MainWindow/MainToolbar2",
"0-2;64;3;1;4;64;7;10;9;65;34-4" ).toString();
parseAndCreate( line2, controlLayout2 );
@@ -853,7 +853,7 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, QWidget *_parent ) :
.arg( ATOB_BUTTON )
.arg( FRAME_BUTTON ); */
- QString line = getSettings()->value( "MainWindow/AdvControl",
+ QString line = getSettings()->value( "MainWindow/AdvToolbar",
"12;11;13;14" ).toString();
parseAndCreate( line, controlLayout );
}
@@ -869,7 +869,7 @@ InputControlsWidget::InputControlsWidget( intf_thread_t *_p_i, QWidget *_parent
.arg( SLOWER_BUTTON ).arg( WIDGET_FLAT )
.arg( INPUT_SLIDER )
.arg( FASTER_BUTTON ); */
- QString line = getSettings()->value( "MainWindow/InputControl",
+ QString line = getSettings()->value( "MainWindow/InputToolbar",
"5-1;33;6-1" ).toString();
parseAndCreate( line, controlLayout );
}
@@ -921,7 +921,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i )
.arg( TIME_LABEL )
.arg( VOLUME ); */
- QString line = getSettings()->value( "MainWindow/FSCline",
+ QString line = getSettings()->value( "MainWindow/FSCtoolbar",
"0-2;64;3;1;4;64;36;64;37;64;8;65;35-4;34" ).toString();
parseAndCreate( line, controlLayout );
diff --git a/modules/gui/qt4/dialogs/toolbar.cpp b/modules/gui/qt4/dialogs/toolbar.cpp
index 547c02f..4914394 100644
--- a/modules/gui/qt4/dialogs/toolbar.cpp
+++ b/modules/gui/qt4/dialogs/toolbar.cpp
@@ -80,7 +80,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
mainTboxLayout->addWidget( positionCombo, 0, 2, 1, 1 );
QLabel *line1Label = new QLabel( "Line 1:" );
- QString line1 = getSettings()->value( "MainWindow/Controls1",
+ QString line1 = getSettings()->value( "MainWindow/MainToolbar1",
"64;36;37;38;65").toString();
controller1 = new DroppingController( p_intf, line1,
this );
@@ -88,7 +88,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
mainTboxLayout->addWidget( controller1, 1, 1, 1, 2 );
QLabel *line2Label = new QLabel( "Line 2:" );
- QString line2 = getSettings()->value( "MainWindow/Controls2",
+ QString line2 = getSettings()->value( "MainWindow/MainToolbar2",
"0-2;64;3;1;4;64;7;10;9;65;34-4;" ).toString();
controller2 = new DroppingController( p_intf, line2,
this );
@@ -97,7 +97,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
/* Advanced ToolBar */
QLabel *advLabel = new QLabel( "Advanced Widget toolbar:" );
- QString lineA = getSettings()->value( "MainWindow/AdvControl",
+ QString lineA = getSettings()->value( "MainWindow/AdvToolbar",
"12;11;13;14").toString();
controllerA = new DroppingController( p_intf, lineA,
this );
@@ -110,7 +110,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
QGroupBox *timeToolbarBox = new QGroupBox( "Time Toolbar", this );
QGridLayout *timeTboxLayout = new QGridLayout( timeToolbarBox );
- QString line = getSettings()->value( "MainWindow/InputControl",
+ QString line = getSettings()->value( "MainWindow/InputToolbar",
"5-1;33;6-1").toString();
controller = new DroppingController( p_intf, line,
this );
@@ -122,7 +122,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
QGroupBox *FSCToolbarBox = new QGroupBox( "Fullscreen Controller", this );
QGridLayout *FSCTboxLayout = new QGridLayout( FSCToolbarBox );
- QString lineFSC = getSettings()->value( "MainWindow/FSCline",
+ QString lineFSC = getSettings()->value( "MainWindow/FSCtoolbar",
"0-2;64;3;1;4;64;36;64;37;64;8;65;35-4;34" ).toString();
controllerFSC = new DroppingController( p_intf,
lineFSC, this );
@@ -151,11 +151,11 @@ void ToolbarEditDialog::close()
{
msg_Dbg( p_intf, "Close and save" );
hide();
- getSettings()->setValue( "MainWindow/Controls1", controller1->getValue() );
- getSettings()->setValue( "MainWindow/Controls2", controller2->getValue() );
- getSettings()->setValue( "MainWindow/AdcControl", controllerA->getValue() );
- getSettings()->setValue( "MainWindow/InputControl", controller->getValue() );
- getSettings()->setValue( "MainWindow/FSCline", controllerFSC->getValue() );
+ getSettings()->setValue( "MainWindow/MainToolbar1", controller1->getValue() );
+ getSettings()->setValue( "MainWindow/MainToolbar2", controller2->getValue() );
+ getSettings()->setValue( "MainWindow/AdvToolbar", controllerA->getValue() );
+ getSettings()->setValue( "MainWindow/InputToolbar", controller->getValue() );
+ getSettings()->setValue( "MainWindow/FSCtoolbar", controllerFSC->getValue() );
}
void ToolbarEditDialog::cancel()
More information about the vlc-devel
mailing list