Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f6aab8b8
Commit
f6aab8b8
authored
Feb 13, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Actually implement double-click on speed does reset the speed... Don't laugh...
parent
5df9c323
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+0
-5
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+16
-2
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+1
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
f6aab8b8
...
...
@@ -839,11 +839,6 @@ void SpeedControlWidget::setEnable( bool b_enable )
speedSlider
->
setEnabled
(
b_enable
);
}
void
SpeedControlWidget
::
mouseDoubleClickEvent
(
QMouseEvent
*
event
)
{
resetRate
();
}
#define RATE_SLIDER_MAXIMUM 3.0
#define RATE_SLIDER_MINIMUM 0.3
#define RATE_SLIDER_LENGTH 100.0
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
f6aab8b8
...
...
@@ -36,6 +36,7 @@
#include "qt4.hpp"
#include "main_interface.hpp"
#include "input_manager.hpp"
#include <QWidget>
#include <QFrame>
...
...
@@ -238,6 +239,21 @@ signals:
void
timeLabelDoubleClicked
();
};
class
SpeedLabel
:
public
QLabel
{
Q_OBJECT
public:
SpeedLabel
(
intf_thread_t
*
_p_intf
,
const
QString
text
)
:
QLabel
(
text
)
{
p_intf
=
_p_intf
;
}
protected:
virtual
void
mouseDoubleClickEvent
(
QMouseEvent
*
event
)
{
THEMIM
->
getIM
()
->
setRate
(
INPUT_RATE_DEFAULT
);
}
private:
intf_thread_t
*
p_intf
;
};
/******************** Speed Control Widgets ****************/
class
SpeedControlWidget
:
public
QFrame
...
...
@@ -247,8 +263,6 @@ public:
SpeedControlWidget
(
intf_thread_t
*
);
virtual
~
SpeedControlWidget
();
void
updateControls
(
int
);
protected:
virtual
void
mouseDoubleClickEvent
(
QMouseEvent
*
event
);
private:
intf_thread_t
*
p_intf
;
QSlider
*
speedSlider
;
...
...
modules/gui/qt4/main_interface.cpp
View file @
f6aab8b8
...
...
@@ -324,7 +324,7 @@ inline void MainInterface::createStatusBar()
nameLabel
=
new
QLabel
;
nameLabel
->
setTextInteractionFlags
(
Qt
::
TextSelectableByMouse
|
Qt
::
TextSelectableByKeyboard
);
speedLabel
=
new
QLabel
(
"1.00x"
);
speedLabel
=
new
SpeedLabel
(
p_intf
,
"1.00x"
);
speedLabel
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
/* Styling those labels */
...
...
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