Skip to content

Commit 033f3ce

Browse files
committed
qml: Allow to show an error text below Setting header text
1 parent 033b5a8 commit 033f3ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/qml/controls/Setting.qml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ AbstractButton {
1313
property alias actionItem: action_loader.sourceComponent
1414
property alias loadedItem: action_loader.item
1515
property string description
16+
property string errorText: ""
17+
property bool showErrorText: false
1618
property color stateColor
1719
state: "FILLED"
1820

@@ -74,6 +76,8 @@ AbstractButton {
7476
description: root.description
7577
descriptionSize: 15
7678
descriptionMargin: 0
79+
subtext: root.showErrorText ? root.errorText : ""
80+
subtextColor: Theme.color.blue
7781
}
7882
Loader {
7983
id: action_loader

0 commit comments

Comments
 (0)