aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/localstorage/MyDelegate.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/localstorage/MyDelegate.qml')
-rw-r--r--examples/quick/localstorage/MyDelegate.qml14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/quick/localstorage/MyDelegate.qml b/examples/quick/localstorage/MyDelegate.qml
index 30ccd77749..94f78b5ed6 100644
--- a/examples/quick/localstorage/MyDelegate.qml
+++ b/examples/quick/localstorage/MyDelegate.qml
@@ -4,15 +4,10 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
-import QtQuick.LocalStorage
-import "Database.js" as JS
Item {
id: delegate
- width: ListView.view.width
- implicitHeight: rDate.implicitHeight * 1.5
-
required property int index
required property int distance
required property string trip_desc
@@ -20,13 +15,18 @@ Item {
signal clicked()
+ width: ListView.view.width
+ implicitHeight: rDate.implicitHeight * 1.5
+
Rectangle {
id: baseRec
anchors.fill: parent
opacity: 0.8
color: delegate.index % 2 ? "lightgrey" : "grey"
- border.width: 2
- border.color: Qt.lighter(color)
+ border {
+ width: 2
+ color: Qt.lighter(color)
+ }
radius: 5
MouseArea {