Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
a99f23a0
Commit
a99f23a0
authored
Aug 20, 2007
by
Jean-Baptiste Kempf
Browse files
Qt4 : buttons size and various fixes. Remove dead code and avoid duplication.
parent
28a742bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
(
2
0
,
2
0
)
);
playButton
->
setMaximumSize
(
QSize
(
45
,
45
)
);
playButton
->
setIconSize
(
QSize
(
3
0
,
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
(
3
0
,
3
0
)
);
playlistButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
playlistButton
->
setIconSize
(
QSize
(
2
0
,
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
Supports
Markdown
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