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

Move NetworkActivityWidget into Tomahawk::Widgets namespace

This commit is contained in:
Dominik Schmidt
2013-06-30 23:39:20 +02:00
parent edbc60f274
commit 4ec651c378
4 changed files with 15 additions and 5 deletions

View File

@@ -34,6 +34,7 @@
#define NETWORKCHARTS_NUM_TRACKS 100
using namespace Tomahawk;
using namespace Tomahawk::Widgets;
NetworkActivityWidget::NetworkActivityWidget( QWidget* parent )
: QWidget( parent )

View File

@@ -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

View File

@@ -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

View File

@@ -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 >() )
);
}