Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
72852e3b
Commit
72852e3b
authored
Dec 30, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix a misconception and a leak.
parent
a78e7a5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+7
-8
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+1
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
72852e3b
...
...
@@ -289,7 +289,7 @@ SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, const QString text )
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
/* Create the Speed Control Widget */
speedControl
=
new
SpeedControlWidget
(
p_intf
);
speedControl
=
new
SpeedControlWidget
(
p_intf
,
this
);
speedControlMenu
=
new
QMenu
(
this
);
QWidgetAction
*
widgetAction
=
new
QWidgetAction
(
speedControl
);
...
...
@@ -304,8 +304,7 @@ SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, const QString text )
/* Change the SpeedRate in the Status Bar */
CONNECT
(
THEMIM
->
getIM
(),
rateChanged
(
int
),
this
,
setRate
(
int
)
);
// FIXME this is wrong but will work for some time.
CONNECT
(
THEMIM
->
getIM
(),
statusChanged
(
int
),
CONNECT
(
THEMIM
,
inputChanged
(
input_thread_t
*
),
speedControl
,
activateOnState
()
);
}
...
...
@@ -331,8 +330,8 @@ void SpeedLabel::setRate( int rate )
/**********************************************************************
* Speed control widget
**********************************************************************/
SpeedControlWidget
::
SpeedControlWidget
(
intf_thread_t
*
_p_i
)
:
QFrame
(
NULL
),
p_intf
(
_p_i
)
SpeedControlWidget
::
SpeedControlWidget
(
intf_thread_t
*
_p_i
,
QWidget
*
_parent
)
:
QFrame
(
_parent
),
p_intf
(
_p_i
)
{
QSizePolicy
sizePolicy
(
QSizePolicy
::
Maximum
,
QSizePolicy
::
Fixed
);
sizePolicy
.
setHorizontalStretch
(
0
);
...
...
@@ -523,8 +522,8 @@ TimeLabel::TimeLabel( intf_thread_t *_p_intf ) :QLabel(), p_intf( _p_intf )
setToolTip
(
qtr
(
"Toggle between elapsed and remaining time"
)
);
CONNECT
(
THEMIM
->
getIM
(),
statusChanged
(
int
),
this
,
setStatus
(
int
)
);
/*
CONNECT( THEMIM->getIM(), statusChanged( int ),
this, setStatus( int ) );
Remove */
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
this
,
setDisplayPosition
(
float
,
int
,
int
)
);
}
...
...
@@ -549,7 +548,7 @@ void TimeLabel::toggleTimeDisplay()
{
b_remainingTime
=
!
b_remainingTime
;
}
/* This is wrong remove */
void
TimeLabel
::
setStatus
(
int
i_status
)
{
msg_Warn
(
p_intf
,
"Status: %i"
,
i_status
);
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
72852e3b
...
...
@@ -175,7 +175,7 @@ class SpeedControlWidget : public QFrame
{
Q_OBJECT
public:
SpeedControlWidget
(
intf_thread_t
*
);
SpeedControlWidget
(
intf_thread_t
*
,
QWidget
*
);
void
updateControls
(
int
);
private:
intf_thread_t
*
p_intf
;
...
...
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