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
b6a1348f
Commit
b6a1348f
authored
Dec 16, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Small interface and control layout fix.
parent
de268c16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+11
-7
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+1
-0
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
b6a1348f
...
...
@@ -371,7 +371,9 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
{
controlLayout
=
new
QGridLayout
(
this
);
controlLayout
->
setSpacing
(
0
);
setSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Minimum
);
//controlLayout->setMargin( 0 );
setSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Maximum
);
/** The main Slider **/
slider
=
new
InputSlider
(
Qt
::
Horizontal
,
NULL
);
...
...
@@ -456,8 +458,8 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
/* Play */
playButton
=
new
QPushButton
;
playButton
->
setSizePolicy
(
sizePolicy
);
playButton
->
setMaximumSize
(
QSize
(
3
8
,
38
)
);
playButton
->
setMinimumSize
(
QSize
(
45
,
45
)
);
playButton
->
setMaximumSize
(
QSize
(
3
6
,
36
)
);
playButton
->
setMinimumSize
(
QSize
(
36
,
36
)
);
playButton
->
setIconSize
(
QSize
(
30
,
30
)
);
controlLayout
->
addWidget
(
playButton
,
2
,
0
,
2
,
2
);
...
...
@@ -499,8 +501,10 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
BUTTON_SET_ACT_I
(
nextButton
,
""
,
next
.
png
,
qtr
(
"Next"
),
next
()
);
BUTTON_SET_ACT_I
(
stopButton
,
""
,
stop
.
png
,
qtr
(
"Stop"
),
stop
()
);
controlLayout
->
setColumnStretch
(
7
,
2
);
controlLayout
->
setColumnMinimumWidth
(
7
,
20
);
controlLayout
->
setColumnStretch
(
7
,
0
);
controlLayout
->
setColumnStretch
(
8
,
0
);
controlLayout
->
setColumnStretch
(
9
,
0
);
/*
* Other first Line buttons
*/
...
...
@@ -524,6 +528,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
setupSmallButton
(
extSettingsButton
);
controlLayout
->
addWidget
(
extSettingsButton
,
3
,
12
,
Qt
::
AlignBottom
);
controlLayout
->
setColumnStretch
(
13
,
0
);
controlLayout
->
setColumnStretch
(
14
,
5
);
/* Volume */
...
...
@@ -562,8 +567,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
}
ControlsWidget
::~
ControlsWidget
()
{
}
{}
/*
QSize ControlsWidget::sizeHint() const
...
...
modules/gui/qt4/main_interface.cpp
View file @
b6a1348f
...
...
@@ -352,6 +352,7 @@ void MainInterface::handleMainUi( QSettings *settings )
/* Margins, spacing */
main
->
setContentsMargins
(
0
,
0
,
0
,
0
);
main
->
setSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Maximum
);
mainLayout
->
setMargin
(
0
);
/* Create the CONTROLS Widget */
...
...
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