[vlc-devel] commit: Qt4: more leaks ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Feb 10 20:51:23 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Feb 10 21:15:09 2009 +0200| [14bdc015ae724f5c77cd5fc75afeb12759478ea8] | committer: Rémi Denis-Courmont
Qt4: more leaks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=14bdc015ae724f5c77cd5fc75afeb12759478ea8
---
modules/gui/qt4/components/interface_widgets.cpp | 5 +++--
modules/gui/qt4/components/interface_widgets.hpp | 2 +-
modules/gui/qt4/main_interface.cpp | 4 ++--
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 2b6a305..b84f567 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -280,8 +280,9 @@ void VisualSelector::next()
}
#endif
-SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, const QString text )
- : QLabel( text ), p_intf( _p_intf )
+SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, const QString& text,
+ QWidget *parent )
+ : QLabel( text, parent ), p_intf( _p_intf )
{
setToolTip( qtr( "Current playback speed.\nRight click to adjust" ) );
setContextMenuPolicy ( Qt::CustomContextMenu );
diff --git a/modules/gui/qt4/components/interface_widgets.hpp b/modules/gui/qt4/components/interface_widgets.hpp
index b3c2ba6..f889d78 100644
--- a/modules/gui/qt4/components/interface_widgets.hpp
+++ b/modules/gui/qt4/components/interface_widgets.hpp
@@ -156,7 +156,7 @@ class SpeedLabel : public QLabel
{
Q_OBJECT
public:
- SpeedLabel( intf_thread_t *, const QString );
+ SpeedLabel( intf_thread_t *, const QString&, QWidget * );
protected:
virtual void mouseDoubleClickEvent ( QMouseEvent * event )
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index ee799eb..17b3d45 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -316,10 +316,10 @@ inline void MainInterface::createStatusBar()
****************/
/* Widgets Creation*/
TimeLabel *timeLabel = new TimeLabel( p_intf );
- nameLabel = new QLabel;
+ nameLabel = new QLabel( this );
nameLabel->setTextInteractionFlags( Qt::TextSelectableByMouse
| Qt::TextSelectableByKeyboard );
- SpeedLabel *speedLabel = new SpeedLabel( p_intf, "1.00x" );
+ SpeedLabel *speedLabel = new SpeedLabel( p_intf, "1.00x", this );
/* Styling those labels */
timeLabel->setFrameStyle( QFrame::Sunken | QFrame::Panel );
More information about the vlc-devel
mailing list