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

Woops, fix last commit.

This commit is contained in:
Dominik Schmidt
2013-07-01 00:42:18 +02:00
parent c1d999c6a3
commit a126934e52
3 changed files with 18 additions and 9 deletions

View File

@@ -33,6 +33,7 @@
#include "utils/TomahawkUtilsGui.h" #include "utils/TomahawkUtilsGui.h"
using namespace Tomahawk; using namespace Tomahawk;
using namespace Tomahawk::Widgets;
QString SocialPlaylistWidget::s_popularAlbumsQuery = "SELECT * from album"; QString SocialPlaylistWidget::s_popularAlbumsQuery = "SELECT * from album";
QString SocialPlaylistWidget::s_mostPlayedPlaylistsQuery = "asd"; QString SocialPlaylistWidget::s_mostPlayedPlaylistsQuery = "asd";

View File

@@ -27,17 +27,20 @@
* *
*/ */
#ifndef SOCIALPLAYLISTWIDGET_H #ifndef TOMAHAWK_WIDGETS_SOCIALPLAYLISTWIDGET_H
#define SOCIALPLAYLISTWIDGET_H #define TOMAHAWK_WIDGETS_SOCIALPLAYLISTWIDGET_H
#include <QWidget>
#include "ViewPage.h" #include "ViewPage.h"
#include "DllMacro.h"
#include "Typedefs.h" #include "Typedefs.h"
#include "Album.h" #include "Album.h"
#include "Query.h" #include "Query.h"
#include <QWidget>
#include "WidgetsDllMacro.h"
#include "Dashboard.h"
class PlayableModel; class PlayableModel;
class PlaylistModel; class PlaylistModel;
class TreeModel; class TreeModel;
@@ -47,7 +50,10 @@ class Ui_SocialPlaylistWidget;
namespace Tomahawk namespace Tomahawk
{ {
class DLLEXPORT SocialPlaylistWidget : public QWidget, public Tomahawk::ViewPage namespace Widgets
{
class TOMAHAWK_WIDGETS_EXPORT SocialPlaylistWidget : public QWidget, public Tomahawk::ViewPage
{ {
Q_OBJECT Q_OBJECT
@@ -90,6 +96,8 @@ private:
static QString s_topForeignTracksQuery; static QString s_topForeignTracksQuery;
}; };
} } // Widgets
#endif // SOCIALPLAYLISTWIDGET_H } // Tomahawk
#endif // TOMAHAWK_WIDGETS_SOCIALPLAYLISTWIDGET_H

View File

@@ -581,7 +581,7 @@ SourceItem::coolPlaylistsClicked()
return 0; return 0;
if ( !m_coolPlaylistsPage ) if ( !m_coolPlaylistsPage )
m_coolPlaylistsPage = new SocialPlaylistWidget( ViewManager::instance()->widget() ); m_coolPlaylistsPage = new Tomahawk::Widgets::SocialPlaylistWidget( ViewManager::instance()->widget() );
ViewManager::instance()->show( m_coolPlaylistsPage ); ViewManager::instance()->show( m_coolPlaylistsPage );
return m_coolPlaylistsPage; return m_coolPlaylistsPage;