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()
}
#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 );
......
......@@ -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 )
......
......@@ -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 );
......
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