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
a99f23a0
Commit
a99f23a0
authored
Aug 20, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 : buttons size and various fixes. Remove dead code and avoid duplication.
parent
28a742bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
15 deletions
+10
-15
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+9
-14
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+1
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
a99f23a0
...
...
@@ -225,11 +225,6 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) :
BUTTON_SET_ACT
(
snapshotButton
,
"S"
,
qtr
(
"Take a snapshot"
),
snapshot
()
);
layout
->
addWidget
(
snapshotButton
);
snapshotButton
->
setMaximumWidth
(
35
);
fullscreenButton
=
new
QPushButton
(
"F"
);
BUTTON_SET_ACT
(
fullscreenButton
,
"F"
,
qtr
(
"Fullscreen"
),
fullscreen
()
);
layout
->
addWidget
(
fullscreenButton
);
fullscreenButton
->
setMaximumWidth
(
35
);
}
AdvControlsWidget
::~
AdvControlsWidget
()
...
...
@@ -245,7 +240,7 @@ void AdvControlsWidget::enableInput( bool enable )
void
AdvControlsWidget
::
enableVideo
(
bool
enable
)
{
snapshotButton
->
setEnabled
(
enable
);
fullscreenButton
->
setEnabled
(
enable
);
//
fullscreenButton->setEnabled( enable );
}
void
AdvControlsWidget
::
normal
()
...
...
@@ -282,12 +277,12 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
slowerButton
=
new
QPushButton
(
"S"
);
BUTTON_SET_ACT
(
slowerButton
,
"S"
,
qtr
(
"Slower"
),
slower
()
);
controlLayout
->
addWidget
(
slowerButton
,
0
,
0
);
slowerButton
->
setMaximumSize
(
QSize
(
26
,
2
6
)
);
slowerButton
->
setMaximumSize
(
QSize
(
26
,
2
0
)
);
fasterButton
=
new
QPushButton
(
"F"
);
BUTTON_SET_ACT
(
fasterButton
,
"F"
,
qtr
(
"Faster"
),
faster
()
);
controlLayout
->
addWidget
(
fasterButton
,
0
,
16
);
fasterButton
->
setMaximumSize
(
QSize
(
26
,
2
6
)
);
fasterButton
->
setMaximumSize
(
QSize
(
26
,
2
0
)
);
/** Disc and Menus handling */
discFrame
=
new
QFrame
(
this
);
...
...
@@ -330,8 +325,8 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
/* Play */
QPushButton
*
playButton
=
new
QPushButton
;
playButton
->
setSizePolicy
(
sizePolicy
);
playButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
playButton
->
setIconSize
(
QSize
(
20
,
2
0
)
);
playButton
->
setMaximumSize
(
QSize
(
45
,
45
)
);
playButton
->
setIconSize
(
QSize
(
30
,
3
0
)
);
controlLayout
->
addWidget
(
playButton
,
2
,
0
,
2
,
2
);
...
...
@@ -381,14 +376,14 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
fullscreenButton
=
new
QPushButton
(
"F"
);
BUTTON_SET_ACT
(
fullscreenButton
,
"F"
,
qtr
(
"Fullscreen"
),
fullscreen
()
);
fullscreenButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
controlLayout
->
addWidget
(
fullscreenButton
,
3
,
1
1
);
controlLayout
->
addWidget
(
fullscreenButton
,
3
,
1
0
);
/** Playlist Button **/
playlistButton
=
new
QPushButton
;
playlistButton
->
setMaximumSize
(
QSize
(
45
,
45
)
);
playlistButton
->
setIconSize
(
QSize
(
30
,
3
0
)
);
playlistButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
playlistButton
->
setIconSize
(
QSize
(
20
,
2
0
)
);
controlLayout
->
addWidget
(
playlistButton
,
3
,
1
0
);
controlLayout
->
addWidget
(
playlistButton
,
3
,
1
1
);
/** extended Settings **/
QPushButton
*
extSettingsButton
=
new
QPushButton
(
"F"
);
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
a99f23a0
...
...
@@ -111,7 +111,7 @@ public:
private:
intf_thread_t
*
p_intf
;
QPushButton
*
normalButton
;
QPushButton
*
fullscreenButton
,
*
snapshotButton
;
QPushButton
*
snapshotButton
;
private
slots
:
void
normal
();
void
snapshot
();
...
...
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