mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Fixed delegate's connect.
This commit is contained in:
@@ -59,7 +59,7 @@ PlaylistChartItemDelegate::PlaylistChartItemDelegate( TrackView* parent, TrackPr
|
|||||||
m_bottomOption = QTextOption( Qt::AlignBottom );
|
m_bottomOption = QTextOption( Qt::AlignBottom );
|
||||||
m_bottomOption.setWrapMode( QTextOption::NoWrap );
|
m_bottomOption.setWrapMode( QTextOption::NoWrap );
|
||||||
|
|
||||||
connect( m_model->sourceModel(), SIGNAL( modelReset() ), this, SLOT( modelChanged() ) );
|
connect( m_model, SIGNAL( modelReset() ), this, SLOT( modelChanged() ) );
|
||||||
if ( PlaylistView* plView = qobject_cast< PlaylistView* >( parent ) )
|
if ( PlaylistView* plView = qobject_cast< PlaylistView* >( parent ) )
|
||||||
connect( plView, SIGNAL( modelChanged() ), this, SLOT( modelChanged() ) );
|
connect( plView, SIGNAL( modelChanged() ), this, SLOT( modelChanged() ) );
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ PlaylistLargeItemDelegate::PlaylistLargeItemDelegate( DisplayMode mode, TrackVie
|
|||||||
m_bottomOption = QTextOption( Qt::AlignBottom );
|
m_bottomOption = QTextOption( Qt::AlignBottom );
|
||||||
m_bottomOption.setWrapMode( QTextOption::NoWrap );
|
m_bottomOption.setWrapMode( QTextOption::NoWrap );
|
||||||
|
|
||||||
connect( proxy->sourceModel(), SIGNAL( modelReset() ), this, SLOT( modelChanged() ) );
|
connect( proxy, SIGNAL( modelReset() ), this, SLOT( modelChanged() ) );
|
||||||
if ( PlaylistView* plView = qobject_cast< PlaylistView* >( parent ) )
|
if ( PlaylistView* plView = qobject_cast< PlaylistView* >( parent ) )
|
||||||
connect( plView, SIGNAL( modelChanged() ), this, SLOT( modelChanged() ) );
|
connect( plView, SIGNAL( modelChanged() ), this, SLOT( modelChanged() ) );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user