summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-01-23 13:45:58 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2020-01-28 14:13:32 +0100
commitdef0972bf32bb22d5123f409e17f9e92f3809bf4 (patch)
treedba6cd195a23722c797c810229d39bb1cbdb8b9c
parent4d23367694e6e007f24cd00322242a81965189bf (diff)
downloadqtquickcontrols-def0972bf32bb22d5123f409e17f9e92f3809bf4.tar.gz
Stop using QDateTime's locale-specific APIs
Use QLocale's date-time APIs, instead. Task-number: QTBUG-80441 Change-Id: I75453a002e0eea299d0527c0fa9431dc8bc53c7f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--examples/quickcontrols/controls/filesystembrowser/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quickcontrols/controls/filesystembrowser/main.cpp b/examples/quickcontrols/controls/filesystembrowser/main.cpp
index d8599a2e..3a49215d 100644
--- a/examples/quickcontrols/controls/filesystembrowser/main.cpp
+++ b/examples/quickcontrols/controls/filesystembrowser/main.cpp
@@ -120,7 +120,7 @@ public:
case DisplayableFilePermissionsRole:
return QVariant(permissionString(fileInfo(index)));
case LastModifiedRole:
- return QVariant(fileInfo(index).lastModified().toString(Qt::SystemLocaleShortDate));
+ return QVariant(QLocale::system().toString(fileInfo(index).lastModified(), QLocale::ShortFormat));
case UrlStringRole:
return QVariant(QUrl::fromLocalFile(filePath(index)).toString());
default: