QmlDesigner: Refresh preview image every hour

It is to assumed that the preview image will be changed and we don't need
to collect the time stamps of the files.

Task-number: QDS-5924
Change-Id: Icf5540d7bcc9da17a1497641f6189f35eb47f5d2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2022-01-11 14:52:38 +01:00
parent 7ce13691ff
commit 68ac61193c
7 changed files with 82 additions and 5 deletions

View File

@@ -41,6 +41,17 @@ public:
}
friend bool operator!=(TimeStamp first, TimeStamp second) { return !(first == second); }
friend bool operator<(TimeStamp first, TimeStamp second) { return first.value < second.value; }
friend TimeStamp operator+(TimeStamp first, TimeStamp second)
{
return first.value + second.value;
}
friend TimeStamp operator-(TimeStamp first, TimeStamp second)
{
return first.value - second.value;
}
bool isValid() const { return value >= 0; }