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
41e0bd59
Commit
41e0bd59
authored
Mar 02, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: ControlsWidget: fix layout visibility
parent
8290233b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+4
-4
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/components/controller.hpp
+3
-2
No files found.
modules/gui/qt4/components/controller.cpp
View file @
41e0bd59
...
@@ -109,7 +109,7 @@ void AbstractController::setupButton( QAbstractButton *aButton )
...
@@ -109,7 +109,7 @@ void AbstractController::setupButton( QAbstractButton *aButton )
/* Open the generic config line for the toolbar, parse it
/* Open the generic config line for the toolbar, parse it
* and create the widgets accordingly */
* and create the widgets accordingly */
void
AbstractController
::
parseAndCreate
(
const
QString
&
config
,
void
AbstractController
::
parseAndCreate
(
const
QString
&
config
,
QBoxLayout
*
c
ontrolLayout
)
QBoxLayout
*
newC
ontrolLayout
)
{
{
QStringList
list
=
config
.
split
(
";"
,
QString
::
SkipEmptyParts
)
;
QStringList
list
=
config
.
split
(
";"
,
QString
::
SkipEmptyParts
)
;
for
(
int
i
=
0
;
i
<
list
.
count
();
i
++
)
for
(
int
i
=
0
;
i
<
list
.
count
();
i
++
)
...
@@ -140,12 +140,12 @@ void AbstractController::parseAndCreate( const QString& config,
...
@@ -140,12 +140,12 @@ void AbstractController::parseAndCreate( const QString& config,
}
}
}
}
createAndAddWidget
(
c
ontrolLayout
,
-
1
,
i_type
,
i_option
);
createAndAddWidget
(
newC
ontrolLayout
,
-
1
,
i_type
,
i_option
);
}
}
if
(
buttonGroupLayout
)
if
(
buttonGroupLayout
)
{
{
c
ontrolLayout
->
addLayout
(
buttonGroupLayout
);
newC
ontrolLayout
->
addLayout
(
buttonGroupLayout
);
buttonGroupLayout
=
NULL
;
buttonGroupLayout
=
NULL
;
}
}
}
}
...
@@ -648,7 +648,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
...
@@ -648,7 +648,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
setStyleSheet
(
"background: red "
);
setStyleSheet
(
"background: red "
);
#endif
#endif
setAttribute
(
Qt
::
WA_MacBrushedMetal
);
setAttribute
(
Qt
::
WA_MacBrushedMetal
);
QVBoxLayout
*
controlLayout
=
new
QVBoxLayout
(
this
);
controlLayout
=
new
QVBoxLayout
(
this
);
controlLayout
->
setContentsMargins
(
3
,
1
,
0
,
1
);
controlLayout
->
setContentsMargins
(
3
,
1
,
0
,
1
);
controlLayout
->
setSpacing
(
0
);
controlLayout
->
setSpacing
(
0
);
QHBoxLayout
*
controlLayout1
=
new
QHBoxLayout
;
QHBoxLayout
*
controlLayout1
=
new
QHBoxLayout
;
...
...
modules/gui/qt4/components/controller.hpp
View file @
41e0bd59
...
@@ -46,8 +46,9 @@ class QPixmap;
...
@@ -46,8 +46,9 @@ class QPixmap;
class
QLabel
;
class
QLabel
;
class
QGridLayout
;
class
QGridLayout
;
class
QHBoxLayout
;
class
QBoxLayout
;
class
QBoxLayout
;
class
QHBoxLayout
;
class
QVBoxLayout
;
class
QAbstractSlider
;
class
QAbstractSlider
;
class
QAbstractButton
;
class
QAbstractButton
;
...
@@ -165,7 +166,7 @@ protected:
...
@@ -165,7 +166,7 @@ protected:
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
QSignalMapper
*
toolbarActionsMapper
;
QSignalMapper
*
toolbarActionsMapper
;
Q
HBoxLayout
*
controlLayout
;
Q
BoxLayout
*
controlLayout
;
/* Change to BoxLayout if both dir are needed */
/* Change to BoxLayout if both dir are needed */
AdvControlsWidget
*
advControls
;
AdvControlsWidget
*
advControls
;
...
...
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