1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 08:21:54 +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

2
README
View File

@ -15,7 +15,7 @@ Gloox 1.0 (XMPP library)
You need to build gloox 1.0 from source, Ubuntu 10.04 only packages v0.9.
$ # Download and unpack tarball
$ CXXFLAGS=-fPIC ./configure --without-openssl --with-gnutls --without-libidn --with-zlib --without-examples --without-tests
$ ./configure --without-openssl --with-gnutls --without-libidn --with-zlib --without-examples --without-tests
$ CXXFLAGS=-fPIC make
$ sudo make install

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