diff options
Diffstat (limited to 'src/quickcontrols/designer/ButtonSection.qml')
-rw-r--r-- | src/quickcontrols/designer/ButtonSection.qml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/quickcontrols/designer/ButtonSection.qml b/src/quickcontrols/designer/ButtonSection.qml new file mode 100644 index 0000000000..d338bd2990 --- /dev/null +++ b/src/quickcontrols/designer/ButtonSection.qml @@ -0,0 +1,41 @@ +// 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 + +import QtQuick +import HelperWidgets +import QtQuick.Layouts + +Section { + id: section + caption: qsTr("Button") + + SectionLayout { + + Label { + text: qsTr("Flat") + tooltip: qsTr("Whether the button is flat.") + disabledState: !backendValues.flat.isAvailable + } + SecondColumnLayout { + CheckBox { + text: backendValues.flat.valueToString + backendValue: backendValues.flat + Layout.fillWidth: true + enabled: backendValue.isAvailable + } + } + Label { + text: qsTr("Highlighted") + tooltip: qsTr("Whether the button is highlighted.") + disabledState: !backendValues.highlighted.isAvailable + } + SecondColumnLayout { + CheckBox { + text: backendValues.highlighted.valueToString + backendValue: backendValues.highlighted + Layout.fillWidth: true + enabled: backendValue.isAvailable + } + } + } +} |