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
74ffc974
Commit
74ffc974
authored
Mar 03, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: give access to fineslower and finefaster in the menus.
parent
0444f81a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+11
-0
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+2
-0
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+8
-0
No files found.
modules/gui/qt4/input_manager.cpp
View file @
74ffc974
...
...
@@ -28,6 +28,7 @@
#endif
#include "input_manager.hpp"
#include <vlc_keys.h>
#include <QApplication>
...
...
@@ -779,6 +780,16 @@ void InputManager::faster()
var_SetVoid
(
p_input
,
"rate-faster"
);
}
void
InputManager
::
littlefaster
()
{
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_RATE_FASTER_FINE
);
}
void
InputManager
::
littleslower
()
{
var_SetInteger
(
p_intf
->
p_libvlc
,
"key-action"
,
ACTIONID_RATE_SLOWER_FINE
);
}
void
InputManager
::
normalRate
()
{
if
(
hasInput
()
)
...
...
modules/gui/qt4/input_manager.hpp
View file @
74ffc974
...
...
@@ -144,6 +144,8 @@ public slots:
void
reverse
();
void
slower
();
void
faster
();
void
littlefaster
();
void
littleslower
();
void
normalRate
();
void
setRate
(
int
);
/* Jumping */
...
...
modules/gui/qt4/menus.cpp
View file @
74ffc974
...
...
@@ -747,10 +747,18 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf )
action
->
setIcon
(
QIcon
(
":/faster"
)
);
action
->
setData
(
true
);
action
=
menu
->
addAction
(
qtr
(
"Faster (fine)"
),
THEMIM
->
getIM
(),
SLOT
(
littlefaster
()
)
);
action
->
setData
(
true
);
action
=
menu
->
addAction
(
qtr
(
"N&ormal Speed"
),
THEMIM
->
getIM
(),
SLOT
(
normalRate
()
)
);
action
->
setData
(
true
);
action
=
menu
->
addAction
(
qtr
(
"Slower (fine)"
),
THEMIM
->
getIM
(),
SLOT
(
littleslower
()
)
);
action
->
setData
(
true
);
action
=
menu
->
addAction
(
qtr
(
"Slo&wer"
),
THEMIM
->
getIM
(),
SLOT
(
slower
()
)
);
action
->
setIcon
(
QIcon
(
":/slower"
)
);
...
...
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