Added total playtime

This commit is contained in:
Leland Liu
2019-07-09 22:23:24 -04:00
committed by Petr Mrázek
parent 8ea500de68
commit 1762d2fc7d
5 changed files with 43 additions and 2 deletions

View File

@@ -128,6 +128,8 @@ public:
*/
bool destroyStagingPath(const QString & keyPath);
int getTotalPlayTime();
signals:
void dataIsInvalid();
void instancesChanged();
@@ -145,6 +147,7 @@ private slots:
private:
int getInstIndex(BaseInstance *inst) const;
void updateTotalPlayTime();
void suspendWatch();
void resumeWatch();
void add(const QList<InstancePtr> &list);
@@ -155,6 +158,7 @@ private:
private:
int m_watchLevel = 0;
int totalPlayTime = 0;
bool m_dirty = false;
QList<InstancePtr> m_instances;
QSet<QString> m_groupNameCache;