1
1
import QtQuick
2
2
import QtQuick.Controls
3
+ import QtQuick.Layouts
3
4
4
5
import ThemeEngine
5
6
import DeviceUtils
@@ -66,29 +67,54 @@ Flickable {
66
67
67
68
visible: (selectedDevice && selectedDevice .hasAdvertisement )
68
69
69
- Row {
70
+ // //
71
+
72
+ RowLayout {
70
73
anchors .top : parent .top
71
74
anchors .topMargin : 12
72
75
anchors .left : parent .left
73
76
anchors .leftMargin : 16
77
+ anchors .right : parent .right
78
+ anchors .rightMargin : 16
79
+
74
80
height: 32
75
81
spacing: 12
76
82
77
83
Rectangle {
84
+ Layout .alignment : Qt .AlignVCenter
78
85
width: 16 ; height: 16 ; radius: 4 ;
79
- anchors .verticalCenter : parent .verticalCenter
80
- anchors .verticalCenterOffset : - 1
81
86
color: Theme .colorGreen
82
87
}
83
88
84
89
Text {
85
- anchors .verticalCenter : parent .verticalCenter
90
+ Layout .fillWidth : true
91
+ Layout .alignment : Qt .AlignVCenter
86
92
87
93
text: qsTr (" Service data" )
88
94
textFormat: Text .PlainText
89
95
font .pixelSize : Theme .fontSizeContentBig
96
+ horizontalAlignment: Text .AlignLeft
97
+ elide: Text .ElideRight
90
98
color: Theme .colorText
91
99
}
100
+
101
+ Text {
102
+ Layout .fillWidth : true
103
+ Layout .alignment : Qt .AlignVCenter
104
+
105
+ text: qsTr (" Manufacturer data" )
106
+ textFormat: Text .PlainText
107
+ font .pixelSize : Theme .fontSizeContentBig
108
+ horizontalAlignment: Text .AlignRight
109
+ elide: Text .ElideRight
110
+ color: Theme .colorText
111
+ }
112
+
113
+ Rectangle {
114
+ Layout .alignment : Qt .AlignVCenter
115
+ width: 16 ; height: 16 ; radius: 4 ;
116
+ color: Theme .colorBlue
117
+ }
92
118
}
93
119
94
120
// //
@@ -122,33 +148,6 @@ Flickable {
122
148
}
123
149
}
124
150
125
- // //////
126
-
127
- Row {
128
- anchors .top : parent .top
129
- anchors .topMargin : 12
130
- anchors .right : parent .right
131
- anchors .rightMargin : 16
132
- height: 32
133
- spacing: 12
134
-
135
- Text {
136
- anchors .verticalCenter : parent .verticalCenter
137
-
138
- text: qsTr (" Manufacturer data" )
139
- textFormat: Text .PlainText
140
- font .pixelSize : Theme .fontSizeContentBig
141
- color: Theme .colorText
142
- }
143
-
144
- Rectangle {
145
- width: 16 ; height: 16 ; radius: 4 ;
146
- anchors .verticalCenter : parent .verticalCenter
147
- anchors .verticalCenterOffset : - 1
148
- color: Theme .colorBlue
149
- }
150
- }
151
-
152
151
// //
153
152
154
153
Row {
@@ -179,6 +178,8 @@ Flickable {
179
178
}
180
179
}
181
180
}
181
+
182
+ // //
182
183
}
183
184
184
185
// //////
@@ -192,5 +193,7 @@ Flickable {
192
193
packet: modelData
193
194
}
194
195
}
196
+
197
+ // //////
195
198
}
196
199
}
0 commit comments