Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e06dc389
Commit
e06dc389
authored
Jan 03, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: add the slower/faster buttons near the speed slider
parent
18120e5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+17
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
e06dc389
...
...
@@ -411,6 +411,20 @@ SpeedControlWidget::SpeedControlWidget( intf_thread_t *_p_i, QWidget *_parent )
CONNECT
(
normalSpeedButton
,
clicked
(),
this
,
resetRate
()
);
QToolButton
*
slowerButton
=
new
QToolButton
(
this
);
slowerButton
->
setMaximumSize
(
QSize
(
26
,
16
)
);
slowerButton
->
setAutoRaise
(
true
);
slowerButton
->
setToolTip
(
tooltipL
[
SLOWER_BUTTON
]
);
slowerButton
->
setIcon
(
QIcon
(
iconL
[
SLOWER_BUTTON
]
)
);
CONNECT
(
slowerButton
,
clicked
(),
THEMIM
->
getIM
(),
slower
()
);
QToolButton
*
fasterButton
=
new
QToolButton
(
this
);
fasterButton
->
setMaximumSize
(
QSize
(
26
,
16
)
);
fasterButton
->
setAutoRaise
(
true
);
fasterButton
->
setToolTip
(
tooltipL
[
FASTER_BUTTON
]
);
fasterButton
->
setIcon
(
QIcon
(
iconL
[
FASTER_BUTTON
]
)
);
CONNECT
(
fasterButton
,
clicked
(),
THEMIM
->
getIM
(),
faster
()
);
/* spinBox = new QDoubleSpinBox();
spinBox->setDecimals( 2 );
spinBox->setMaximum( 32 );
...
...
@@ -422,7 +436,9 @@ SpeedControlWidget::SpeedControlWidget( intf_thread_t *_p_i, QWidget *_parent )
QGridLayout
*
speedControlLayout
=
new
QGridLayout
(
this
);
speedControlLayout
->
addWidget
(
speedSlider
,
0
,
0
,
1
,
3
);
speedControlLayout
->
addWidget
(
normalSpeedButton
,
1
,
1
);
speedControlLayout
->
addWidget
(
slowerButton
,
1
,
0
);
speedControlLayout
->
addWidget
(
normalSpeedButton
,
1
,
1
,
1
,
1
,
Qt
::
AlignRight
);
speedControlLayout
->
addWidget
(
fasterButton
,
1
,
2
,
1
,
1
,
Qt
::
AlignRight
);
//speedControlLayout->addWidget( spinBox );
speedControlLayout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
speedControlLayout
->
setSpacing
(
0
);
...
...
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