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
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
Hide 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()
...
@@ -412,9 +412,8 @@ void VisualSelector::next()
}
}
#endif
#endif
SpeedLabel
::
SpeedLabel
(
intf_thread_t
*
_p_intf
,
const
QString
&
text
,
SpeedLabel
::
SpeedLabel
(
intf_thread_t
*
_p_intf
,
QWidget
*
parent
)
QWidget
*
parent
)
:
QLabel
(
parent
),
p_intf
(
_p_intf
)
:
QLabel
(
text
,
parent
),
p_intf
(
_p_intf
)
{
{
setToolTip
(
qtr
(
"Current playback speed.
\n
Click to adjust"
)
);
setToolTip
(
qtr
(
"Current playback speed.
\n
Click to adjust"
)
);
...
@@ -431,6 +430,7 @@ SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, const QString& text,
...
@@ -431,6 +430,7 @@ SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, const QString& text,
DCONNECT
(
THEMIM
,
inputChanged
(
input_thread_t
*
),
DCONNECT
(
THEMIM
,
inputChanged
(
input_thread_t
*
),
speedControl
,
activateOnState
()
);
speedControl
,
activateOnState
()
);
setRate
(
INPUT_RATE_DEFAULT
);
}
}
SpeedLabel
::~
SpeedLabel
()
SpeedLabel
::~
SpeedLabel
()
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
0900cd7c
...
@@ -162,7 +162,7 @@ class SpeedLabel : public QLabel
...
@@ -162,7 +162,7 @@ class SpeedLabel : public QLabel
{
{
Q_OBJECT
Q_OBJECT
public:
public:
SpeedLabel
(
intf_thread_t
*
,
const
QString
&
,
QWidget
*
);
SpeedLabel
(
intf_thread_t
*
,
QWidget
*
);
virtual
~
SpeedLabel
();
virtual
~
SpeedLabel
();
protected:
protected:
...
...
modules/gui/qt4/main_interface.cpp
View file @
0900cd7c
...
@@ -498,7 +498,7 @@ inline void MainInterface::createStatusBar()
...
@@ -498,7 +498,7 @@ inline void MainInterface::createStatusBar()
nameLabel
=
new
QLabel
(
this
);
nameLabel
=
new
QLabel
(
this
);
nameLabel
->
setTextInteractionFlags
(
Qt
::
TextSelectableByMouse
nameLabel
->
setTextInteractionFlags
(
Qt
::
TextSelectableByMouse
|
Qt
::
TextSelectableByKeyboard
);
|
Qt
::
TextSelectableByKeyboard
);
SpeedLabel
*
speedLabel
=
new
SpeedLabel
(
p_intf
,
"1.00x"
,
this
);
SpeedLabel
*
speedLabel
=
new
SpeedLabel
(
p_intf
,
this
);
/* Styling those labels */
/* Styling those labels */
timeLabel
->
setFrameStyle
(
QFrame
::
Sunken
|
QFrame
::
Panel
);
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