mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 09:34:53 +02:00
Use direct implementation and do not call virtuals in the constructor
This commit is contained in:
@@ -36,7 +36,8 @@ SourcesProxyModel::SourcesProxyModel( SourcesModel* model, QObject* parent )
|
|||||||
setDynamicSortFilter( true );
|
setDynamicSortFilter( true );
|
||||||
setSortRole( SourcesModel::SortRole );
|
setSortRole( SourcesModel::SortRole );
|
||||||
|
|
||||||
setSourceModel( model );
|
// Use direct implementation and do not call virtuals in the constructor.
|
||||||
|
QSortFilterProxyModel::setSourceModel( model );
|
||||||
|
|
||||||
connect( model, SIGNAL( rowsInserted( QModelIndex, int, int ) ), SLOT( onModelChanged() ) );
|
connect( model, SIGNAL( rowsInserted( QModelIndex, int, int ) ), SLOT( onModelChanged() ) );
|
||||||
connect( model, SIGNAL( rowsRemoved( QModelIndex, int, int ) ), SLOT( onModelChanged() ) );
|
connect( model, SIGNAL( rowsRemoved( QModelIndex, int, int ) ), SLOT( onModelChanged() ) );
|
||||||
|
Reference in New Issue
Block a user