Add material icons

This commit is contained in:
Michael Ehrenreich
2023-02-20 00:44:44 +01:00
parent 79cc570347
commit 9611823a77
5 changed files with 214 additions and 2 deletions

View File

@ -17,7 +17,9 @@ ColumnLayout {
Layout.fillWidth: true
Button {
text: qsTr("Add")
text: "\ue145"
font.family: materialIcons.font.family
font.pixelSize: 20
onClicked: addClicked(listView.currentIndex)
}
@ -27,7 +29,9 @@ ColumnLayout {
}
Button {
text: qsTr("Remove")
text: "\ue872"
font.family: materialIcons.font.family
font.pixelSize: 20
onClicked: removeClicked(listView.currentIndex)
enabled: listView.currentIndex >= 0