From 4607c4b5816e151bca2af6237ed51a682f148c8e Mon Sep 17 00:00:00 2001 From: dteviot Date: Sat, 18 Apr 2015 15:33:49 +1200 Subject: [PATCH] Add Modified DateTime to plug-in tooltip. (Fixes #2479) --- components/contentselector/model/esmfile.cpp | 7 ++++--- components/contentselector/model/esmfile.hpp | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/contentselector/model/esmfile.cpp b/components/contentselector/model/esmfile.cpp index 1ac1c7500..46a7c9600 100644 --- a/components/contentselector/model/esmfile.cpp +++ b/components/contentselector/model/esmfile.cpp @@ -6,9 +6,10 @@ int ContentSelectorModel::EsmFile::sPropertyCount = 7; QString ContentSelectorModel::EsmFile::sToolTip = QString("Author: %1
\ Version: %2
\ - Path:
%3
\ -
Description:
%4
\ -
Dependencies: %5
"); + Modified: %3
\ + Path:
%4
\ +
Description:
%5
\ +
Dependencies: %6
"); ContentSelectorModel::EsmFile::EsmFile(QString fileName, ModelItem *parent) diff --git a/components/contentselector/model/esmfile.hpp b/components/contentselector/model/esmfile.hpp index d0cebab3c..614eee298 100644 --- a/components/contentselector/model/esmfile.hpp +++ b/components/contentselector/model/esmfile.hpp @@ -59,6 +59,7 @@ namespace ContentSelectorModel inline QString description() const { return mDescription; } inline QString toolTip() const { return sToolTip.arg(mAuthor) .arg(mFormat) + .arg(mModified.toString(Qt::ISODate)) .arg(mPath) .arg(mDescription) .arg(mGameFiles.join(", "));