1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-21 21:25:52 +02:00

* Setup a DynamicQmlWidget when showing a station.

This commit is contained in:
Christian Muehlhaeuser
2012-07-03 17:05:58 +02:00
parent 92d7757e47
commit 6bc9f88189

View File

@@ -42,6 +42,7 @@
#include "PlaylistLargeItemDelegate.h"
#include "RecentlyPlayedModel.h"
#include "dynamic/widgets/DynamicWidget.h"
#include "dynamic/widgets/DynamicQmlWidget.h"
#include "widgets/NewReleasesWidget.h"
#include "widgets/WelcomeWidget.h"
@@ -192,6 +193,11 @@ ViewManager::show( const Tomahawk::playlist_ptr& playlist )
Tomahawk::ViewPage*
ViewManager::show( const Tomahawk::dynplaylist_ptr& playlist )
{
DynamicQmlWidget* w = new Tomahawk::DynamicQmlWidget( playlist, m_stack );
setPage( w );
return w;
//// OLD FOO
if ( !m_dynamicWidgets.contains( playlist ) || m_dynamicWidgets.value( playlist ).isNull() )
{
m_dynamicWidgets[ playlist ] = new Tomahawk::DynamicWidget( playlist, m_stack );