@@ -22,8 +22,8 @@ GridLayout {
22
22
onClicked: complexMenu .popup ()
23
23
}
24
24
25
-
26
25
StatusButton {
26
+ id: customPopupButton
27
27
text: " Menu with custom images and icons"
28
28
onClicked: customMenu .popup ()
29
29
}
@@ -51,7 +51,7 @@ GridLayout {
51
51
52
52
StatusPopupMenu {
53
53
id: complexMenu
54
- subMenuItemIcons: [{ icon: ' info' }]
54
+ // subMenuItemIcons: [{ icon: 'info' }]
55
55
56
56
StatusMenuItem {
57
57
text: " One"
@@ -65,13 +65,10 @@ GridLayout {
65
65
assetSettings .name : " info"
66
66
}
67
67
68
- StatusMenuItem {
69
- text : " Three "
68
+ StatusPopupMenu {
69
+ title : " Two "
70
70
assetSettings .name : " info"
71
- }
72
71
73
- StatusPopupMenu {
74
- title: " Four"
75
72
StatusMenuItem {
76
73
text: " One"
77
74
assetSettings .name : " info"
@@ -81,21 +78,34 @@ GridLayout {
81
78
assetSettings .name : " info"
82
79
}
83
80
}
81
+
82
+ StatusMenuItem {
83
+ text: " Disabled"
84
+ assetSettings .name : " info"
85
+ enabled: false
86
+ }
87
+
88
+ StatusMenuItem {
89
+ text: " Danger"
90
+ type: StatusMenuItem .Type .Danger
91
+ }
84
92
}
85
93
86
94
StatusPopupMenu {
87
95
id: customMenu
88
96
89
- subMenuItemIcons: [
90
- { icon: " chat" },
91
- {
92
- source: " qrc:/demoapp/data/profile-image-1.jpeg"
93
- },
94
- {
95
- isLetterIdenticon: true ,
96
- color: " red"
97
- }
98
- ]
97
+ // subMenuItemIcons: [
98
+ // {
99
+ // icon: "chat"
100
+ // },
101
+ // {
102
+ // source: "qrc:/demoapp/data/profile-image-1.jpeg"
103
+ // },
104
+ // {
105
+ // isLetterIdenticon: true,
106
+ // color: "red"
107
+ // }
108
+ // ]
99
109
100
110
StatusMenuItem {
101
111
text: " Anywhere"
@@ -104,14 +114,15 @@ GridLayout {
104
114
StatusMenuSeparator {}
105
115
106
116
StatusPopupMenu {
107
- title: " Chat"
117
+ title: " Chat"
118
+ assetSettings .name : " chat"
108
119
109
120
StatusMenuItem {
110
121
text: " vitalik.eth"
111
122
assetSettings .isImage : true
123
+ assetSettings .imgIsIdenticon : true
112
124
assetSettings .name : " data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0Bh
113
125
CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
114
- assetSettings .imgIsIdenticon : true
115
126
}
116
127
117
128
StatusMenuItem {
@@ -123,6 +134,8 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
123
134
124
135
StatusPopupMenu {
125
136
title: " Cryptokitties"
137
+ assetSettings .isImage : true
138
+ assetSettings .name : " qrc:/demoapp/data/profile-image-1.jpeg"
126
139
127
140
StatusMenuItem {
128
141
text: " welcome"
@@ -146,6 +159,8 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
146
159
147
160
StatusPopupMenu {
148
161
title: " Another community"
162
+ assetSettings .isLetterIdenticon : true
163
+ assetSettings .bgColor : " red"
149
164
150
165
StatusMenuItem {
151
166
text: " welcome"
0 commit comments