diff --git a/src/libtomahawk/widgets/NetworkActivityWidget.cpp b/src/libtomahawk/widgets/NetworkActivityWidget.cpp index 603290d2d..694c7bdf5 100644 --- a/src/libtomahawk/widgets/NetworkActivityWidget.cpp +++ b/src/libtomahawk/widgets/NetworkActivityWidget.cpp @@ -34,6 +34,7 @@ #define NETWORKCHARTS_NUM_TRACKS 100 using namespace Tomahawk; +using namespace Tomahawk::Widgets; NetworkActivityWidget::NetworkActivityWidget( QWidget* parent ) : QWidget( parent ) diff --git a/src/libtomahawk/widgets/NetworkActivityWidget.h b/src/libtomahawk/widgets/NetworkActivityWidget.h index fb9d20658..cfa87fed0 100644 --- a/src/libtomahawk/widgets/NetworkActivityWidget.h +++ b/src/libtomahawk/widgets/NetworkActivityWidget.h @@ -34,6 +34,11 @@ namespace Ui class NetworkActivityWidget; } +namespace Tomahawk +{ +namespace Widgets +{ + class TOMAHAWK_WIDGETS_EXPORT NetworkActivityWidget : public QWidget, public Tomahawk::ViewPage { Q_OBJECT @@ -77,4 +82,8 @@ private: NetworkActivityWidgetPrivate* d_ptr; }; +}; // Widgets + +}; // Tomahawk + #endif // NETWORKACTIVITYWIDGET_H diff --git a/src/libtomahawk/widgets/NetworkActivityWidget_p.h b/src/libtomahawk/widgets/NetworkActivityWidget_p.h index 302cbd0dc..a5f1302df 100644 --- a/src/libtomahawk/widgets/NetworkActivityWidget_p.h +++ b/src/libtomahawk/widgets/NetworkActivityWidget_p.h @@ -25,14 +25,14 @@ class NetworkActivityWidgetPrivate { public: - NetworkActivityWidgetPrivate( NetworkActivityWidget* q ) + NetworkActivityWidgetPrivate( Tomahawk::Widgets::NetworkActivityWidget* q ) : q_ptr ( q ) , ui( new Ui::NetworkActivityWidget ) , sortedProxy( 0 ) { } - NetworkActivityWidget* q_ptr; - Q_DECLARE_PUBLIC ( NetworkActivityWidget ) + Tomahawk::Widgets::NetworkActivityWidget* q_ptr; + Q_DECLARE_PUBLIC ( Tomahawk::Widgets::NetworkActivityWidget ) private: QSharedPointer ui; @@ -44,7 +44,7 @@ private: QPointer monthlyChartsModel; QPointer yearlyChartsModel; QPointer overallChartsModel; - NetworkActivityWidget::ViewType activeView; + Tomahawk::Widgets::NetworkActivityWidget::ViewType activeView; }; #endif // NETWORKACTIVITYWIDGET_P_H diff --git a/src/tomahawk/sourcetree/SourcesModel.cpp b/src/tomahawk/sourcetree/SourcesModel.cpp index e1cbc2931..ed4d0ed57 100644 --- a/src/tomahawk/sourcetree/SourcesModel.cpp +++ b/src/tomahawk/sourcetree/SourcesModel.cpp @@ -352,7 +352,7 @@ SourcesModel::appendGroups() ViewManager::instance()->addDynamicPage("network_activity", tr( "Network Activity" ), TomahawkUtils::defaultPixmap( TomahawkUtils::NetworkActivity, TomahawkUtils::Original ), - boost::lambda::bind( boost::lambda::new_ptr< NetworkActivityWidget >() ) + boost::lambda::bind( boost::lambda::new_ptr< Tomahawk::Widgets::NetworkActivityWidget >() ) ); }