Commit 54b49f69 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

[Qt] Settings name consistency.

parent 38968494
...@@ -796,7 +796,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -796,7 +796,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
QHBoxLayout *controlLayout1 = new QHBoxLayout; QHBoxLayout *controlLayout1 = new QHBoxLayout;
controlLayout1->setSpacing( 0 ); controlLayout1->setSpacing( 0 );
QString line1 = getSettings()->value( "MainWindow/Controls1", QString line1 = getSettings()->value( "MainWindow/MainToolbar1",
"64;36;37;38;65").toString(); "64;36;37;38;65").toString();
parseAndCreate( line1, controlLayout1 ); parseAndCreate( line1, controlLayout1 );
...@@ -811,7 +811,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -811,7 +811,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
QHBoxLayout *controlLayout2 = new QHBoxLayout; QHBoxLayout *controlLayout2 = new QHBoxLayout;
controlLayout2->setSpacing( 0 ); 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(); "0-2;64;3;1;4;64;7;10;9;65;34-4" ).toString();
parseAndCreate( line2, controlLayout2 ); parseAndCreate( line2, controlLayout2 );
...@@ -853,7 +853,7 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, QWidget *_parent ) : ...@@ -853,7 +853,7 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, QWidget *_parent ) :
.arg( ATOB_BUTTON ) .arg( ATOB_BUTTON )
.arg( FRAME_BUTTON ); */ .arg( FRAME_BUTTON ); */
QString line = getSettings()->value( "MainWindow/AdvControl", QString line = getSettings()->value( "MainWindow/AdvToolbar",
"12;11;13;14" ).toString(); "12;11;13;14" ).toString();
parseAndCreate( line, controlLayout ); parseAndCreate( line, controlLayout );
} }
...@@ -869,7 +869,7 @@ InputControlsWidget::InputControlsWidget( intf_thread_t *_p_i, QWidget *_parent ...@@ -869,7 +869,7 @@ InputControlsWidget::InputControlsWidget( intf_thread_t *_p_i, QWidget *_parent
.arg( SLOWER_BUTTON ).arg( WIDGET_FLAT ) .arg( SLOWER_BUTTON ).arg( WIDGET_FLAT )
.arg( INPUT_SLIDER ) .arg( INPUT_SLIDER )
.arg( FASTER_BUTTON ); */ .arg( FASTER_BUTTON ); */
QString line = getSettings()->value( "MainWindow/InputControl", QString line = getSettings()->value( "MainWindow/InputToolbar",
"5-1;33;6-1" ).toString(); "5-1;33;6-1" ).toString();
parseAndCreate( line, controlLayout ); parseAndCreate( line, controlLayout );
} }
...@@ -921,7 +921,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i ) ...@@ -921,7 +921,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i )
.arg( TIME_LABEL ) .arg( TIME_LABEL )
.arg( VOLUME ); */ .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(); "0-2;64;3;1;4;64;36;64;37;64;8;65;35-4;34" ).toString();
parseAndCreate( line, controlLayout ); parseAndCreate( line, controlLayout );
......
...@@ -80,7 +80,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf) ...@@ -80,7 +80,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
mainTboxLayout->addWidget( positionCombo, 0, 2, 1, 1 ); mainTboxLayout->addWidget( positionCombo, 0, 2, 1, 1 );
QLabel *line1Label = new QLabel( "Line 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(); "64;36;37;38;65").toString();
controller1 = new DroppingController( p_intf, line1, controller1 = new DroppingController( p_intf, line1,
this ); this );
...@@ -88,7 +88,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf) ...@@ -88,7 +88,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
mainTboxLayout->addWidget( controller1, 1, 1, 1, 2 ); mainTboxLayout->addWidget( controller1, 1, 1, 1, 2 );
QLabel *line2Label = new QLabel( "Line 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(); "0-2;64;3;1;4;64;7;10;9;65;34-4;" ).toString();
controller2 = new DroppingController( p_intf, line2, controller2 = new DroppingController( p_intf, line2,
this ); this );
...@@ -97,7 +97,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf) ...@@ -97,7 +97,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
/* Advanced ToolBar */ /* Advanced ToolBar */
QLabel *advLabel = new QLabel( "Advanced Widget 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(); "12;11;13;14").toString();
controllerA = new DroppingController( p_intf, lineA, controllerA = new DroppingController( p_intf, lineA,
this ); this );
...@@ -110,7 +110,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf) ...@@ -110,7 +110,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
QGroupBox *timeToolbarBox = new QGroupBox( "Time Toolbar", this ); QGroupBox *timeToolbarBox = new QGroupBox( "Time Toolbar", this );
QGridLayout *timeTboxLayout = new QGridLayout( timeToolbarBox ); QGridLayout *timeTboxLayout = new QGridLayout( timeToolbarBox );
QString line = getSettings()->value( "MainWindow/InputControl", QString line = getSettings()->value( "MainWindow/InputToolbar",
"5-1;33;6-1").toString(); "5-1;33;6-1").toString();
controller = new DroppingController( p_intf, line, controller = new DroppingController( p_intf, line,
this ); this );
...@@ -122,7 +122,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf) ...@@ -122,7 +122,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
QGroupBox *FSCToolbarBox = new QGroupBox( "Fullscreen Controller", this ); QGroupBox *FSCToolbarBox = new QGroupBox( "Fullscreen Controller", this );
QGridLayout *FSCTboxLayout = new QGridLayout( FSCToolbarBox ); 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(); "0-2;64;3;1;4;64;36;64;37;64;8;65;35-4;34" ).toString();
controllerFSC = new DroppingController( p_intf, controllerFSC = new DroppingController( p_intf,
lineFSC, this ); lineFSC, this );
...@@ -151,11 +151,11 @@ void ToolbarEditDialog::close() ...@@ -151,11 +151,11 @@ void ToolbarEditDialog::close()
{ {
msg_Dbg( p_intf, "Close and save" ); msg_Dbg( p_intf, "Close and save" );
hide(); hide();
getSettings()->setValue( "MainWindow/Controls1", controller1->getValue() ); getSettings()->setValue( "MainWindow/MainToolbar1", controller1->getValue() );
getSettings()->setValue( "MainWindow/Controls2", controller2->getValue() ); getSettings()->setValue( "MainWindow/MainToolbar2", controller2->getValue() );
getSettings()->setValue( "MainWindow/AdcControl", controllerA->getValue() ); getSettings()->setValue( "MainWindow/AdvToolbar", controllerA->getValue() );
getSettings()->setValue( "MainWindow/InputControl", controller->getValue() ); getSettings()->setValue( "MainWindow/InputToolbar", controller->getValue() );
getSettings()->setValue( "MainWindow/FSCline", controllerFSC->getValue() ); getSettings()->setValue( "MainWindow/FSCtoolbar", controllerFSC->getValue() );
} }
void ToolbarEditDialog::cancel() void ToolbarEditDialog::cancel()
......
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