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
2f7f4a74
Commit
2f7f4a74
authored
Jan 19, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: toolbar editor, show the saved positionCombo item at start.
parent
5a428d9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+3
-0
No files found.
modules/gui/qt4/dialogs/toolbar.cpp
View file @
2f7f4a74
...
@@ -77,6 +77,8 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
...
@@ -77,6 +77,8 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
positionCombo
=
new
QComboBox
;
positionCombo
=
new
QComboBox
;
positionCombo
->
addItem
(
qtr
(
"Under the Video"
),
QVariant
(
0
)
);
positionCombo
->
addItem
(
qtr
(
"Under the Video"
),
QVariant
(
0
)
);
positionCombo
->
addItem
(
qtr
(
"Above the Video"
),
QVariant
(
1
)
);
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
);
mainTboxLayout
->
addWidget
(
positionCombo
,
0
,
2
,
1
,
1
);
QLabel
*
line1Label
=
new
QLabel
(
"Line 1:"
);
QLabel
*
line1Label
=
new
QLabel
(
"Line 1:"
);
...
@@ -134,6 +136,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
...
@@ -134,6 +136,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
/* Buttons */
/* Buttons */
QDialogButtonBox
*
okCancel
=
new
QDialogButtonBox
;
QDialogButtonBox
*
okCancel
=
new
QDialogButtonBox
;
QPushButton
*
okButton
=
new
QPushButton
(
qtr
(
"Cl&ose"
),
this
);
QPushButton
*
okButton
=
new
QPushButton
(
qtr
(
"Cl&ose"
),
this
);
okButton
->
setDefault
(
true
);
QPushButton
*
cancelButton
=
new
QPushButton
(
qtr
(
"&Cancel"
),
this
);
QPushButton
*
cancelButton
=
new
QPushButton
(
qtr
(
"&Cancel"
),
this
);
okCancel
->
addButton
(
okButton
,
QDialogButtonBox
::
AcceptRole
);
okCancel
->
addButton
(
okButton
,
QDialogButtonBox
::
AcceptRole
);
okCancel
->
addButton
(
cancelButton
,
QDialogButtonBox
::
RejectRole
);
okCancel
->
addButton
(
cancelButton
,
QDialogButtonBox
::
RejectRole
);
...
...
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