Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
54b49f69
Commit
54b49f69
authored
Dec 09, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Qt] Settings name consistency.
parent
38968494
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+5
-5
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+10
-10
No files found.
modules/gui/qt4/components/controller.cpp
View file @
54b49f69
...
@@ -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/
Controls
1"
,
QString
line1
=
getSettings
()
->
value
(
"MainWindow/
MainToolbar
1"
,
"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/
Controls
2"
,
QString
line2
=
getSettings
()
->
value
(
"MainWindow/
MainToolbar
2"
,
"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/Adv
Control
"
,
QString
line
=
getSettings
()
->
value
(
"MainWindow/Adv
Toolbar
"
,
"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/Input
Control
"
,
QString
line
=
getSettings
()
->
value
(
"MainWindow/Input
Toolbar
"
,
"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/FSC
line
"
,
QString
line
=
getSettings
()
->
value
(
"MainWindow/FSC
toolbar
"
,
"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
);
...
...
modules/gui/qt4/dialogs/toolbar.cpp
View file @
54b49f69
...
@@ -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/
Controls
1"
,
QString
line1
=
getSettings
()
->
value
(
"MainWindow/
MainToolbar
1"
,
"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/
Controls
2"
,
QString
line2
=
getSettings
()
->
value
(
"MainWindow/
MainToolbar
2"
,
"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/Adv
Control
"
,
QString
lineA
=
getSettings
()
->
value
(
"MainWindow/Adv
Toolbar
"
,
"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/Input
Control
"
,
QString
line
=
getSettings
()
->
value
(
"MainWindow/Input
Toolbar
"
,
"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/FSC
line
"
,
QString
lineFSC
=
getSettings
()
->
value
(
"MainWindow/FSC
toolbar
"
,
"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/
Controls
1"
,
controller1
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/
MainToolbar
1"
,
controller1
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/
Controls
2"
,
controller2
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/
MainToolbar
2"
,
controller2
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/Ad
cControl
"
,
controllerA
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/Ad
vToolbar
"
,
controllerA
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/Input
Control
"
,
controller
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/Input
Toolbar
"
,
controller
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/FSC
line
"
,
controllerFSC
->
getValue
()
);
getSettings
()
->
setValue
(
"MainWindow/FSC
toolbar
"
,
controllerFSC
->
getValue
()
);
}
}
void
ToolbarEditDialog
::
cancel
()
void
ToolbarEditDialog
::
cancel
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment