mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-29 16:50:11 +02:00
Move NetworkActivityWidget into Tomahawk::Widgets namespace
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#define NETWORKCHARTS_NUM_TRACKS 100
|
||||
|
||||
using namespace Tomahawk;
|
||||
using namespace Tomahawk::Widgets;
|
||||
|
||||
NetworkActivityWidget::NetworkActivityWidget( QWidget* parent )
|
||||
: QWidget( parent )
|
||||
|
@@ -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
|
||||
|
@@ -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::NetworkActivityWidget> ui;
|
||||
@@ -44,7 +44,7 @@ private:
|
||||
QPointer<PlaylistModel> monthlyChartsModel;
|
||||
QPointer<PlaylistModel> yearlyChartsModel;
|
||||
QPointer<PlaylistModel> overallChartsModel;
|
||||
NetworkActivityWidget::ViewType activeView;
|
||||
Tomahawk::Widgets::NetworkActivityWidget::ViewType activeView;
|
||||
};
|
||||
|
||||
#endif // NETWORKACTIVITYWIDGET_P_H
|
||||
|
@@ -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 >() )
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user