Files
2026-04-29 07:19:21 +03:00

91 lines
2.7 KiB
QML

// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// Qt-Security score:significant reason:default
import QtQuick
import HelperWidgets
import QtQuick.Layouts
Section {
caption: qsTr("AbstractButton")
SectionLayout {
Label {
text: qsTr("Text")
tooltip: qsTr("The text displayed on the button.")
}
SecondColumnLayout {
LineEdit {
backendValue: backendValues.text
Layout.fillWidth: true
}
}
Label {
text: qsTr("Display")
tooltip: qsTr("Determines how the icon and text are displayed within the button.")
disabledState: !backendValues.display.isAvailable
}
SecondColumnLayout {
ComboBox {
backendValue: backendValues.display
model: [ "IconOnly", "TextOnly", "TextBesideIcon" ]
scope: "AbstractButton"
Layout.fillWidth: true
enabled: backendValue.isAvailable
}
}
Label {
visible: checkable
text: qsTr("Checkable")
tooltip: qsTr("Whether the button is checkable.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.checkable.valueToString
backendValue: backendValues.checkable
Layout.fillWidth: true
}
}
Label {
text: qsTr("Checked")
tooltip: qsTr("Whether the button is checked.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.checked.valueToString
backendValue: backendValues.checked
Layout.fillWidth: true
}
}
Label {
text: qsTr("Exclusive")
tooltip: qsTr("Whether the button is exclusive.")
disabledState: !backendValues.autoExclusive.isAvailable
}
SecondColumnLayout {
CheckBox {
text: backendValues.autoExclusive.valueToString
backendValue: backendValues.autoExclusive
Layout.fillWidth: true
enabled: backendValue.isAvailable
}
}
Label {
text: qsTr("Auto-Repeat")
tooltip: qsTr("Whether the button repeats pressed(), released() and clicked() signals while the button is pressed and held down.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.autoRepeat.valueToString
backendValue: backendValues.autoRepeat
Layout.fillWidth: true
}
}
}
}