1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

* Fix sorting for CollectionModel.

This commit is contained in:
Christian Muehlhaeuser
2010-10-22 06:27:51 +02:00
parent b1f716ce97
commit 43614040ab
3 changed files with 8 additions and 2 deletions

View File

@@ -11,6 +11,12 @@ CollectionView::CollectionView( QWidget* parent )
: TrackView( parent )
{
setProxyModel( new CollectionProxyModel( this ) );
setSortingEnabled( true );
sortByColumn( 0, Qt::AscendingOrder );
setDragDropMode( QAbstractItemView::DragOnly );
setAcceptDrops( false );
}

View File

@@ -150,10 +150,10 @@ TomahawkApp::TomahawkApp( int& argc, char *argv[] )
#else
m_nam = new QNetworkAccessManager;
#endif
m_mainwindow = new TomahawkWindow();
m_mainwindow->show();
connect( m_mainwindow, SIGNAL( settingsChanged() ), SIGNAL( settingsChanged() ) );
}
#endif