aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/localstorage/localstorage/MyDelegate.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/localstorage/localstorage/MyDelegate.qml')
-rw-r--r--examples/quick/localstorage/localstorage/MyDelegate.qml15
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/quick/localstorage/localstorage/MyDelegate.qml b/examples/quick/localstorage/localstorage/MyDelegate.qml
index e8575d4f7a..6fbb9544be 100644
--- a/examples/quick/localstorage/localstorage/MyDelegate.qml
+++ b/examples/quick/localstorage/localstorage/MyDelegate.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
@@ -48,9 +48,10 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtQuick.LocalStorage 2.0
-import QtQuick.Layouts 1.1
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+import QtQuick.LocalStorage
import "Database.js" as JS
Item {
@@ -80,21 +81,21 @@ Item {
anchors.fill:parent
columns: 3
- Text {
+ Label {
id: rDate
text: delegate.date
font.pixelSize: 22
Layout.preferredWidth: parent.width / 4
color: "black"
}
- Text {
+ Label {
id: rDesc
text: delegate.trip_desc
Layout.fillWidth: true
font.pixelSize: 22
color: "black"
}
- Text {
+ Label {
id: rDistance
text: delegate.distance
font.pixelSize: 22