feat: able to show file name in window title

This commit is contained in:
2023-05-29 23:59:45 +08:00
parent 5aeb0f821f
commit 6a992f4c1f
3 changed files with 14 additions and 0 deletions

View File

@ -10,6 +10,8 @@ class PlaylistManager : public QObject
{
Q_OBJECT
public:
Q_PROPERTY(int currentIndex MEMBER m_currentIndex NOTIFY currentIndexChanged)
enum PlaylistType {
PL_USERPLAYLIST, // Regular playlist, managed by user.
PL_SAMEFOLDER // PlaylistManager managed playlist, loaded from files from same folder.
@ -43,6 +45,7 @@ public:
signals:
void loaded(int length);
void currentIndexChanged(int index);
private:
QList<QUrl> m_playlist;