-
Notifications
You must be signed in to change notification settings - Fork 0
/
musicpageartist.h
38 lines (30 loc) · 912 Bytes
/
musicpageartist.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef MUSICPAGEARTIST_H
#define MUSICPAGEARTIST_H
#include <QMap>
#include <QListWidget>
#include <QStackedWidget>
#include <QMediaPlaylist>
#include "musicpagemusicitem.h"
class MusicPageArtist : public QWidget
{
Q_OBJECT
public:
explicit MusicPageArtist(QList<MusicPageMusicItem> *musicItems, QWidget *parent = nullptr);
signals:
public slots:
void removeSelectedMusics();
void removeMusicItems(QStringList deletedMusicsPath);
void playSelectedMusic();
private:
void initMap(QList<MusicPageMusicItem> *musicItems);
void initUI();
void setListItemStyle(QListWidget *list, bool setItemHigh = false, bool isArtistList = false);
private slots:
void showContextMenu();
private:
QMap<QString, QListWidget *> m_musicListMap;
QMap<QString, QMediaPlaylist *> m_playlistMap;
QListWidget *m_artistList;
QStackedWidget *m_stack;
};
#endif // MUSICPAGEARTIST_H