mirror of https://code.videolan.org/videolan/vlc
qt: add 'currentIndex' property to PlaylistController
This commit is contained in:
parent
5f1e80b1b7
commit
69a449868d
|
@ -554,6 +554,12 @@ void PlaylistController::explore(const PlaylistItem& pItem)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int PlaylistController::currentIndex() const
|
||||||
|
{
|
||||||
|
Q_D(const PlaylistController);
|
||||||
|
return d->m_currentIndex;
|
||||||
|
}
|
||||||
|
|
||||||
void PlaylistController::play()
|
void PlaylistController::play()
|
||||||
{
|
{
|
||||||
Q_D(PlaylistController);
|
Q_D(PlaylistController);
|
||||||
|
|
|
@ -105,6 +105,7 @@ public:
|
||||||
Q_PROPERTY(SortKey sortKey READ getSortKey WRITE setSortKey NOTIFY sortKeyChanged FINAL)
|
Q_PROPERTY(SortKey sortKey READ getSortKey WRITE setSortKey NOTIFY sortKeyChanged FINAL)
|
||||||
Q_PROPERTY(SortOrder sortOrder READ getSortOrder WRITE setSortOrder NOTIFY sortOrderChanged FINAL)
|
Q_PROPERTY(SortOrder sortOrder READ getSortOrder WRITE setSortOrder NOTIFY sortOrderChanged FINAL)
|
||||||
Q_PROPERTY(MediaStopAction mediaStopAction READ getMediaStopAction WRITE setMediaStopAction NOTIFY mediaStopActionChanged FINAL)
|
Q_PROPERTY(MediaStopAction mediaStopAction READ getMediaStopAction WRITE setMediaStopAction NOTIFY mediaStopActionChanged FINAL)
|
||||||
|
Q_PROPERTY(int currentIndex READ currentIndex NOTIFY currentIndexChanged FINAL)
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -162,6 +163,7 @@ public slots:
|
||||||
|
|
||||||
bool isEmpty() const;
|
bool isEmpty() const;
|
||||||
int count() const;
|
int count() const;
|
||||||
|
int currentIndex() const;
|
||||||
|
|
||||||
SortKey getSortKey() const;
|
SortKey getSortKey() const;
|
||||||
void setSortKey(SortKey sortKey);
|
void setSortKey(SortKey sortKey);
|
||||||
|
|
Loading…
Reference in New Issue