mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
* CollectionView is gone.
This commit is contained in:
parent
872ccc5305
commit
e197231fe6
@ -28,7 +28,6 @@
|
||||
#include "topbar/TopBar.h"
|
||||
|
||||
#include "TreeModel.h"
|
||||
#include "CollectionView.h"
|
||||
#include "PlaylistModel.h"
|
||||
#include "PlaylistView.h"
|
||||
#include "PlayableProxyModel.h"
|
||||
@ -914,13 +913,6 @@ ViewManager::setTomahawkLoaded()
|
||||
}
|
||||
|
||||
|
||||
ViewPage*
|
||||
ViewManager::pageForCollection( const collection_ptr& col ) const
|
||||
{
|
||||
return m_collectionViews.value( col ).data();
|
||||
}
|
||||
|
||||
|
||||
ViewPage*
|
||||
ViewManager::pageForDynPlaylist(const dynplaylist_ptr& pl) const
|
||||
{
|
||||
@ -1001,13 +993,6 @@ ViewManager::dynamicPlaylistForInterface( Tomahawk::playlistinterface_ptr interf
|
||||
Tomahawk::collection_ptr
|
||||
ViewManager::collectionForInterface( Tomahawk::playlistinterface_ptr interface ) const
|
||||
{
|
||||
foreach ( QWeakPointer<CollectionView> view, m_collectionViews.values() )
|
||||
{
|
||||
if ( view.data()->playlistInterface() == interface )
|
||||
{
|
||||
return m_collectionViews.key( view );
|
||||
}
|
||||
}
|
||||
foreach ( QWeakPointer<AlbumView> view, m_collectionAlbumViews.values() )
|
||||
{
|
||||
if ( view.data()->playlistInterface() == interface )
|
||||
@ -1041,7 +1026,7 @@ ViewManager::showCurrentTrack()
|
||||
|
||||
// reset the correct mode, if the user has changed it since
|
||||
|
||||
if ( dynamic_cast< CollectionView* >( page ) )
|
||||
if ( dynamic_cast< TrackView* >( page ) )
|
||||
m_currentMode = PlaylistModes::Flat;
|
||||
else if ( dynamic_cast< AlbumView* >( page ) )
|
||||
m_currentMode = PlaylistModes::Album;
|
||||
|
@ -39,7 +39,6 @@ class AlbumInfoWidget;
|
||||
class ArtistInfoWidget;
|
||||
class ArtistView;
|
||||
class CollectionModel;
|
||||
class CollectionView;
|
||||
class ContextWidget;
|
||||
class PlaylistModel;
|
||||
class PlaylistView;
|
||||
@ -98,7 +97,6 @@ public:
|
||||
/// Get the view page for the given item. Not pretty...
|
||||
Tomahawk::ViewPage* pageForPlaylist( const Tomahawk::playlist_ptr& pl ) const;
|
||||
Tomahawk::ViewPage* pageForDynPlaylist( const Tomahawk::dynplaylist_ptr& pl ) const;
|
||||
Tomahawk::ViewPage* pageForCollection( const Tomahawk::collection_ptr& pl ) const;
|
||||
|
||||
/// Get a playlist (or dynamic playlist ) from a ViewPage* if the page is PlaylistView or DynamicWidget.
|
||||
/// Lives here but used by SourcesModel
|
||||
@ -217,7 +215,6 @@ private:
|
||||
QList< Tomahawk::collection_ptr > m_superCollections;
|
||||
|
||||
QHash< Tomahawk::dynplaylist_ptr, QWeakPointer<Tomahawk::DynamicWidget> > m_dynamicWidgets;
|
||||
QHash< Tomahawk::collection_ptr, QWeakPointer<CollectionView> > m_collectionViews;
|
||||
QHash< Tomahawk::collection_ptr, QWeakPointer<ArtistView> > m_treeViews;
|
||||
QHash< Tomahawk::collection_ptr, QWeakPointer<AlbumView> > m_collectionAlbumViews;
|
||||
QHash< Tomahawk::artist_ptr, QWeakPointer<ArtistInfoWidget> > m_artistViews;
|
||||
|
Loading…
x
Reference in New Issue
Block a user