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
db73f778
Commit
db73f778
authored
Dec 06, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: reduce the size of the margins and spacing between buttons
parent
84daf8ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+17
-5
No files found.
modules/gui/qt4/components/controller.cpp
View file @
db73f778
...
...
@@ -46,6 +46,8 @@
#include <QSignalMapper>
#include <QTimer>
//#define DEBUG_LAYOUT 1
/**********************************************************************
* TEH controls
**********************************************************************/
...
...
@@ -143,13 +145,13 @@ void AbstractController::createAndAddWidget( QBoxLayout *controlLayout,
/* Special case for SPACERS, who aren't QWidgets */
if
(
i_type
==
WIDGET_SPACER
)
{
controlLayout
->
insertSpacing
(
i_index
,
1
6
);
controlLayout
->
insertSpacing
(
i_index
,
1
2
);
return
;
}
if
(
i_type
==
WIDGET_SPACER_EXTEND
)
{
controlLayout
->
insertStretch
(
i_index
,
1
6
);
controlLayout
->
insertStretch
(
i_index
,
1
2
);
return
;
}
...
...
@@ -547,19 +549,22 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
{
/* advanced Controls handling */
b_advancedVisible
=
b_advControls
;
#if DEBUG_LAYOUT
setStyleSheet
(
" background: red "
);
#endif
QVBoxLayout
*
controlLayout
=
new
QVBoxLayout
(
this
);
controlLayout
->
setContentsMargins
(
5
,
3
,
5
,
2
);
controlLayout
->
setContentsMargins
(
4
,
2
,
4
,
0
);
controlLayout
->
setSpacing
(
0
);
QHBoxLayout
*
controlLayout1
=
new
QHBoxLayout
;
controlLayout1
->
setSpacing
(
0
);
controlLayout1
->
setSpacing
(
0
);
controlLayout1
->
setMargin
(
0
);
QString
line1
=
getSettings
()
->
value
(
"MainToolbar1"
,
MAIN_TB1_DEFAULT
)
.
toString
();
parseAndCreate
(
line1
,
controlLayout1
);
QHBoxLayout
*
controlLayout2
=
new
QHBoxLayout
;
controlLayout2
->
setSpacing
(
0
);
controlLayout2
->
setSpacing
(
0
);
controlLayout2
->
setMargin
(
0
);
QString
line2
=
getSettings
()
->
value
(
"MainToolbar2"
,
MAIN_TB2_DEFAULT
)
.
toString
();
parseAndCreate
(
line2
,
controlLayout2
);
...
...
@@ -596,6 +601,10 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, QWidget *_parent ) :
controlLayout
=
new
QHBoxLayout
(
this
);
controlLayout
->
setMargin
(
0
);
controlLayout
->
setSpacing
(
0
);
#if DEBUG_LAYOUT
setStyleSheet
(
" background: orange "
);
#endif
QString
line
=
getSettings
()
->
value
(
"AdvToolbar"
,
ADV_TB_DEFAULT
)
.
toString
();
...
...
@@ -608,6 +617,9 @@ InputControlsWidget::InputControlsWidget( intf_thread_t *_p_i, QWidget *_parent
controlLayout
=
new
QHBoxLayout
(
this
);
controlLayout
->
setMargin
(
0
);
controlLayout
->
setSpacing
(
0
);
#if DEBUG_LAYOUT
setStyleSheet
(
" background: green "
);
#endif
QString
line
=
getSettings
()
->
value
(
"InputToolbar"
,
INPT_TB_DEFAULT
).
toString
();
parseAndCreate
(
line
,
controlLayout
);
...
...
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