Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
864c19f1
Commit
864c19f1
authored
Apr 17, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt: toolbar_editor: fix preview bar ordering
parent
0438b6df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+4
-5
No files found.
modules/gui/qt4/dialogs/toolbar.cpp
View file @
864c19f1
...
...
@@ -181,7 +181,7 @@ ToolbarEditDialog::ToolbarEditDialog( QWidget *_w, intf_thread_t *_p_intf)
profileCombo
->
setCurrentIndex
(
-
1
);
/* Build and prepare our preview */
PreviewWidget
*
previewWidget
=
new
PreviewWidget
(
controller
1
,
controller2
,
controller
);
PreviewWidget
*
previewWidget
=
new
PreviewWidget
(
controller
,
controller1
,
controller2
);
QGroupBox
*
previewBox
=
new
QGroupBox
(
qtr
(
"Preview"
),
this
);
previewBox
->
setLayout
(
new
QVBoxLayout
()
);
previewBox
->
layout
()
->
addWidget
(
previewWidget
);
...
...
@@ -315,8 +315,8 @@ void PreviewWidget::paintEvent( QPaintEvent * )
i_total
+=
pixmaps
[
i
].
size
().
height
();
/* Draw top bars */
i
=
(
b_top
)
?
0
:
3
;
for
(
;
i
<
2
;
i
++
)
i
=
(
b_top
)
?
1
:
3
;
for
(
;
i
<
3
;
i
++
)
{
painter
.
drawPixmap
(
pixmaps
[
i
].
rect
().
translated
(
0
,
i_offset
),
pixmaps
[
i
]
);
i_offset
+=
pixmaps
[
i
].
rect
().
height
();
...
...
@@ -337,8 +337,7 @@ void PreviewWidget::paintEvent( QPaintEvent * )
/* Draw bottom bars */
i_offset
+=
conearea
.
height
();
i
=
(
b_top
)
?
2
:
0
;
for
(
;
i
<
3
;
i
++
)
for
(
i
=
0
;
i
<
((
b_top
)
?
1
:
3
);
i
++
)
{
painter
.
drawPixmap
(
pixmaps
[
i
].
rect
().
translated
(
0
,
i_offset
),
pixmaps
[
i
]
);
i_offset
+=
pixmaps
[
i
].
rect
().
height
();
...
...
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