@@ -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,37 +78,38 @@ 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
- ]
99
-
100
97
StatusMenuItem {
101
98
text: " Anywhere"
102
99
}
103
100
104
101
StatusMenuSeparator {}
105
102
106
103
StatusPopupMenu {
107
- title: " Chat"
104
+ title: " Chat"
105
+ assetSettings .name : " chat"
108
106
109
107
StatusMenuItem {
110
108
text: " vitalik.eth"
111
109
assetSettings .isImage : true
110
+ assetSettings .imgIsIdenticon : true
112
111
assetSettings .name : " data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0Bh
113
112
CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
114
- assetSettings .imgIsIdenticon : true
115
113
}
116
114
117
115
StatusMenuItem {
@@ -123,6 +121,8 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
123
121
124
122
StatusPopupMenu {
125
123
title: " Cryptokitties"
124
+ assetSettings .isImage : true
125
+ assetSettings .name : " qrc:/demoapp/data/profile-image-1.jpeg"
126
126
127
127
StatusMenuItem {
128
128
text: " welcome"
@@ -146,6 +146,8 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
146
146
147
147
StatusPopupMenu {
148
148
title: " Another community"
149
+ assetSettings .isLetterIdenticon : true
150
+ assetSettings .bgColor : " red"
149
151
150
152
StatusMenuItem {
151
153
text: " welcome"
0 commit comments