mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
* Show a loading spinner for 'Newest Stations / Playlists'.
This commit is contained in:
parent
acc4fa8c9a
commit
f1226cd7e4
@ -32,6 +32,7 @@
|
||||
#include "playlist/AlbumModel.h"
|
||||
#include "playlist/RecentlyPlayedModel.h"
|
||||
#include "widgets/OverlayWidget.h"
|
||||
#include "utils/AnimatedSpinner.h"
|
||||
#include "utils/TomahawkUtils.h"
|
||||
#include "utils/Logger.h"
|
||||
#include "dynamic/GeneratorInterface.h"
|
||||
@ -307,4 +308,14 @@ PlaylistWidget::PlaylistWidget( QWidget* parent )
|
||||
: QListView( parent )
|
||||
{
|
||||
m_overlay = new OverlayWidget( this );
|
||||
LoadingSpinner* spinner = new LoadingSpinner( this );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PlaylistWidget::setModel( QAbstractItemModel* model )
|
||||
{
|
||||
QListView::setModel( model );
|
||||
emit modelChanged();
|
||||
}
|
||||
|
||||
|
@ -64,12 +64,20 @@ private:
|
||||
QPixmap m_playlistIcon, m_autoIcon, m_stationIcon, m_defaultAvatar;
|
||||
};
|
||||
|
||||
|
||||
class DLLEXPORT PlaylistWidget : public QListView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PlaylistWidget( QWidget* parent = 0 );
|
||||
|
||||
OverlayWidget* overlay() const { return m_overlay; }
|
||||
|
||||
virtual void setModel( QAbstractItemModel* model );
|
||||
|
||||
signals:
|
||||
void modelChanged();
|
||||
|
||||
private:
|
||||
OverlayWidget* m_overlay;
|
||||
|
Loading…
x
Reference in New Issue
Block a user