diff options
author | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2021-02-10 12:52:50 +0100 |
---|---|---|
committer | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2021-02-16 12:32:52 +0100 |
commit | 860928d5c85f015bacde952037cae14d8dee24a5 (patch) | |
tree | 91558bc964fba149f06d77fbda42b246fedae222 /examples/quick/localstorage/localstorage/MyDelegate.qml | |
parent | 6d51f997df14f2b22c265c5b2fda679ece9edef3 (diff) |
Update localstore example to use QtQuickControls2
Removing MyButton.qml and replacing it with QtQuickControls2.
Task-number: QTBUG-90884
Change-Id: Ie1b22e817dedfd71593b074561bdfe2e7dc36008
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'examples/quick/localstorage/localstorage/MyDelegate.qml')
-rw-r--r-- | examples/quick/localstorage/localstorage/MyDelegate.qml | 15 |
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 |