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
0900cd7c
Commit
0900cd7c
authored
Mar 02, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: simplify SpeedLabel constructor
Ref #3368
parent
937fb9bc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+3
-3
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+1
-1
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 @
0900cd7c
...
...
@@ -412,9 +412,8 @@ void VisualSelector::next()
}
#endif
SpeedLabel
::
SpeedLabel
(
intf_thread_t
*
_p_intf
,
const
QString
&
text
,
QWidget
*
parent
)
:
QLabel
(
text
,
parent
),
p_intf
(
_p_intf
)
SpeedLabel
::
SpeedLabel
(
intf_thread_t
*
_p_intf
,
QWidget
*
parent
)
:
QLabel
(
parent
),
p_intf
(
_p_intf
)
{
setToolTip
(
qtr
(
"Current playback speed.
\n
Click to adjust"
)
);
...
...
@@ -431,6 +430,7 @@ SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, const QString& text,
DCONNECT
(
THEMIM
,
inputChanged
(
input_thread_t
*
),
speedControl
,
activateOnState
()
);
setRate
(
INPUT_RATE_DEFAULT
);
}
SpeedLabel
::~
SpeedLabel
()
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
0900cd7c
...
...
@@ -162,7 +162,7 @@ class SpeedLabel : public QLabel
{
Q_OBJECT
public:
SpeedLabel
(
intf_thread_t
*
,
const
QString
&
,
QWidget
*
);
SpeedLabel
(
intf_thread_t
*
,
QWidget
*
);
virtual
~
SpeedLabel
();
protected:
...
...
modules/gui/qt4/main_interface.cpp
View file @
0900cd7c
...
...
@@ -498,7 +498,7 @@ inline void MainInterface::createStatusBar()
nameLabel
=
new
QLabel
(
this
);
nameLabel
->
setTextInteractionFlags
(
Qt
::
TextSelectableByMouse
|
Qt
::
TextSelectableByKeyboard
);
SpeedLabel
*
speedLabel
=
new
SpeedLabel
(
p_intf
,
"1.00x"
,
this
);
SpeedLabel
*
speedLabel
=
new
SpeedLabel
(
p_intf
,
this
);
/* Styling those labels */
timeLabel
->
setFrameStyle
(
QFrame
::
Sunken
|
QFrame
::
Panel
);
...
...
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