Split HButton components, add HMenu/HMenuItem
This commit is contained in:
@@ -33,7 +33,7 @@ HColumnLayout {
|
||||
HRowLayout {
|
||||
HButton {
|
||||
id: exportButton
|
||||
iconName: "export-keys"
|
||||
icon.name: "export-keys"
|
||||
text: qsTr("Export")
|
||||
enabled: false
|
||||
|
||||
@@ -43,7 +43,7 @@ HColumnLayout {
|
||||
|
||||
HButton {
|
||||
id: importButton
|
||||
iconName: "import-keys"
|
||||
icon.name: "import-keys"
|
||||
text: qsTr("Import")
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
@@ -178,7 +178,7 @@ HGridLayout {
|
||||
property bool avatarChangeRunning: false
|
||||
|
||||
id: saveButton
|
||||
iconName: "apply"
|
||||
icon.name: "apply"
|
||||
text: qsTr("Apply")
|
||||
loading: nameChangeRunning || avatarChangeRunning
|
||||
enabled:
|
||||
@@ -190,7 +190,7 @@ HGridLayout {
|
||||
}
|
||||
|
||||
HButton {
|
||||
iconName: "cancel"
|
||||
icon.name: "cancel"
|
||||
text: qsTr("Cancel")
|
||||
enabled: saveButton.enabled && ! saveButton.loading
|
||||
onClicked: cancelChanges()
|
||||
|
@@ -63,8 +63,8 @@ HPage {
|
||||
model: ["username", "email", "phone"]
|
||||
|
||||
HButton {
|
||||
iconName: modelData
|
||||
ico.dimension: 24
|
||||
icon.name: modelData
|
||||
iconItem.dimension: 24
|
||||
circle: true
|
||||
checked: loginWith == modelData
|
||||
enabled: modelData == "username"
|
||||
|
Reference in New Issue
Block a user