From a44a81ceb712ceb80473f79d78f8bf21b2f89263 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 11 Aug 2023 22:38:05 +0200 Subject: [PATCH] QFileSystemModel: remove incorrect ### Qt 7 comment QTimeZone is not trivially-copyable, so we shouldn't default arguments of that type (cf. QTBUG-98117), but continue overloading. Found in API-review. Task-number: QTBUG-98117 Change-Id: I24e9d6c10512a50c172b5722c7d75bf74adf60a6 Reviewed-by: Ahmad Samir Reviewed-by: Edward Welbourne (cherry picked from commit 3adf81f09f019199d7e5bb008196657c8a76e840) Reviewed-by: Qt Cherry-pick Bot --- src/gui/itemmodels/qfilesystemmodel.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gui/itemmodels/qfilesystemmodel.h b/src/gui/itemmodels/qfilesystemmodel.h index d614ec23290..2aa81923c17 100644 --- a/src/gui/itemmodels/qfilesystemmodel.h +++ b/src/gui/itemmodels/qfilesystemmodel.h @@ -114,7 +114,6 @@ public: qint64 size(const QModelIndex &index) const; QString type(const QModelIndex &index) const; - // ### Qt7 merge the two overloads, with tz QTimeZone::LocalTime QDateTime lastModified(const QModelIndex &index) const; QDateTime lastModified(const QModelIndex &index, const QTimeZone &tz) const;