-
Notifications
You must be signed in to change notification settings - Fork 0
/
ListFood.qml
141 lines (114 loc) · 3.07 KB
/
ListFood.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick 6.5
import QtQuick.Controls 6.5
import QtQuick.Layouts 6.5
Item
{
id: root
// width:10000
height:50
property alias src:imgg.source
// property alias src2:imgg2.source
// property alias src3:imgg3.source
property int duration: 250
property alias text: label.text
property alias price: label2.text
property alias teddadd:label3.text
property alias allprice:label4.text
signal clicked
signal clicked2
signal clicked3
Image
{
id:imgg
source: "images/pack.png"
signal clicked
anchors.verticalCenter: parent.verticalCenter
width: parent.width*80/100
height: parent.height*80/100
}
Rectangle
{
anchors.left: imgg.right
anchors.verticalCenter: parent.verticalCenter
// spacing: 5
Label
{
id: label
text: qsTr("Label")
anchors.verticalCenter: parent.verticalCenter
anchors.left: imgg.parent.right
color: "#443224"
font.pixelSize: 15
}
Label
{
id: label2
// x:parent.width*0.7
text: qsTr("")
anchors.verticalCenter: parent.verticalCenter
// anchors.horizontalCenter: label2.horizontalCenter
anchors.left :label.right
color: "#443224"
font.pixelSize: 15
}
Image
{
id: imgg2
// x:parent.width*0.75
source: "images/manfi.png"
width: 30
height: 30
// signal clicked2
//text: qsTr("si")
anchors.verticalCenter: parent.verticalCenter
anchors.left :label2.right
//font.pixelSize: 15
MouseArea
{
anchors.fill: parent
onClicked: clicked2()
}
}
Text
{
id: label3
text: qsTr("s")
anchors.verticalCenter: parent.verticalCenter
// x: parent.width*70/100
anchors.left :imgg2.right
color: "#443224"
font.pixelSize: 15
}
Image
{
id: imgg3
// x:root.width*0.85
source: "images/mosbat.png"
width:30
height: 30
// signal clicked3
//text: qsTr("si")
anchors.verticalCenter: parent.verticalCenter
anchors.left :label3.right
//font.pixelSize: 15
MouseArea
{
anchors.fill: parent
onClicked: clicked3()
}
}
Text
{
id: label4
// x:root.width*0.9
text: qsTr("s")
anchors.verticalCenter: parent.verticalCenter
// x: parent.width*90/100
anchors.left :imgg3.right
color: "#443224"
font.pixelSize: 15
}
}
}