Split HButton components, add HMenu/HMenuItem

This commit is contained in:
miruka
2019-08-21 15:45:13 -04:00
parent 6067c8ec96
commit ed96409645
13 changed files with 129 additions and 65 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -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"