GH-347 Add timestamp column to mod lists

It shows when the file was changed (in most cases added).
This commit is contained in:
Petr Mrázek
2016-11-17 02:55:02 +01:00
parent fd34ca5a0f
commit b09fad9cbf
4 changed files with 18 additions and 2 deletions

View File

@ -15,6 +15,7 @@
#pragma once
#include <QFileInfo>
#include <QDateTime>
class Mod
{
@ -86,6 +87,11 @@ public:
return m_credits;
}
QDateTime dateTimeChanged() const
{
return m_changedDateTime;
}
bool enabled() const
{
return m_enabled;
@ -118,6 +124,7 @@ protected:
*/
QFileInfo m_file;
QDateTime m_changedDateTime;
QString m_mmc_id;
QString m_mod_id;
bool m_enabled = true;