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
497b2dcc
Commit
497b2dcc
authored
Dec 21, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - SpeedSlider, use an AutoRaise button for the Normal Rate.
Remove and unneeded member in the class.
parent
8c7c961f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+6
-5
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+0
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
497b2dcc
...
...
@@ -822,17 +822,18 @@ SpeedControlWidget::SpeedControlWidget( intf_thread_t *_p_i ) :
CONNECT
(
speedSlider
,
valueChanged
(
int
),
this
,
updateRate
(
int
)
);
normalSpeedButton
=
new
QPushButton
(
"N"
);
QToolButton
*
normalSpeedButton
=
new
QToolButton
(
this
);
normalSpeedButton
->
setMaximumSize
(
QSize
(
26
,
20
)
);
normalSpeedButton
->
setFlat
(
true
);
normalSpeedButton
->
setAutoRaise
(
true
);
normalSpeedButton
->
setText
(
"N"
);
normalSpeedButton
->
setToolTip
(
qtr
(
"Revert to normal play speed"
)
);
CONNECT
(
normalSpeedButton
,
clicked
(),
this
,
resetRate
()
);
QVBoxLayout
*
speedControlLayout
=
new
QVBoxLayout
;
speedControlLayout
->
addWidget
(
speedSlider
);
speedControlLayout
->
addWidget
(
normalSpeedButton
);
setLayout
(
speedControlLayout
);
speedControlLayout
->
addWidget
(
speedSlider
);
speedControlLayout
->
addWidget
(
normalSpeedButton
);
setLayout
(
speedControlLayout
);
}
SpeedControlWidget
::~
SpeedControlWidget
()
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
497b2dcc
...
...
@@ -243,7 +243,6 @@ public:
private:
intf_thread_t
*
p_intf
;
QSlider
*
speedSlider
;
QPushButton
*
normalSpeedButton
;
private
slots
:
void
updateRate
(
int
);
void
resetRate
();
...
...
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