Commit 14bdc015 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: more leaks

parent a430cde7
...@@ -280,8 +280,9 @@ void VisualSelector::next() ...@@ -280,8 +280,9 @@ void VisualSelector::next()
} }
#endif #endif
SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, const QString text ) SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, const QString& text,
: QLabel( text ), p_intf( _p_intf ) QWidget *parent )
: QLabel( text, parent ), p_intf( _p_intf )
{ {
setToolTip( qtr( "Current playback speed.\nRight click to adjust" ) ); setToolTip( qtr( "Current playback speed.\nRight click to adjust" ) );
setContextMenuPolicy ( Qt::CustomContextMenu ); setContextMenuPolicy ( Qt::CustomContextMenu );
......
...@@ -156,7 +156,7 @@ class SpeedLabel : public QLabel ...@@ -156,7 +156,7 @@ class SpeedLabel : public QLabel
{ {
Q_OBJECT Q_OBJECT
public: public:
SpeedLabel( intf_thread_t *, const QString ); SpeedLabel( intf_thread_t *, const QString&, QWidget * );
protected: protected:
virtual void mouseDoubleClickEvent ( QMouseEvent * event ) virtual void mouseDoubleClickEvent ( QMouseEvent * event )
......
...@@ -316,10 +316,10 @@ inline void MainInterface::createStatusBar() ...@@ -316,10 +316,10 @@ inline void MainInterface::createStatusBar()
****************/ ****************/
/* Widgets Creation*/ /* Widgets Creation*/
TimeLabel *timeLabel = new TimeLabel( p_intf ); TimeLabel *timeLabel = new TimeLabel( p_intf );
nameLabel = new QLabel; nameLabel = new QLabel( this );
nameLabel->setTextInteractionFlags( Qt::TextSelectableByMouse nameLabel->setTextInteractionFlags( Qt::TextSelectableByMouse
| Qt::TextSelectableByKeyboard ); | Qt::TextSelectableByKeyboard );
SpeedLabel *speedLabel = new SpeedLabel( p_intf, "1.00x" ); SpeedLabel *speedLabel = new SpeedLabel( p_intf, "1.00x", this );
/* Styling those labels */ /* Styling those labels */
timeLabel->setFrameStyle( QFrame::Sunken | QFrame::Panel ); timeLabel->setFrameStyle( QFrame::Sunken | QFrame::Panel );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment