阻抗弹窗
@@ -0,0 +1,114 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Quick Extras module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.1
|
||||
import HelperWidgets 2.0
|
||||
import QtQuick.Layouts 1.0
|
||||
|
||||
Column {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
Section {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
caption: qsTr("CircularGauge")
|
||||
|
||||
SectionLayout {
|
||||
Label {
|
||||
text: qsTr("Value")
|
||||
tooltip: qsTr("Value")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
backendValue: backendValues.value
|
||||
minimumValue: backendValues.minimumValue.value
|
||||
maximumValue: backendValues.maximumValue.value
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Minimum Value")
|
||||
tooltip: qsTr("Minimum Value")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
id: minimumValueSpinBox
|
||||
backendValue: backendValues.minimumValue
|
||||
minimumValue: 0
|
||||
maximumValue: backendValues.maximumValue.value
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Maximum Value")
|
||||
tooltip: qsTr("Maximum Value")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
id: maximumValueSpinBox
|
||||
backendValue: backendValues.maximumValue
|
||||
minimumValue: backendValues.minimumValue.value
|
||||
maximumValue: 1000
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Step Size")
|
||||
tooltip: qsTr("Step Size")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
backendValue: backendValues.stepSize
|
||||
minimumValue: 0
|
||||
maximumValue: backendValues.maximumValue.value
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Quick Extras module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.1
|
||||
import HelperWidgets 2.0
|
||||
import QtQuick.Layouts 1.0
|
||||
|
||||
Column {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
Section {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
caption: qsTr("DelayButton")
|
||||
|
||||
SectionLayout {
|
||||
Label {
|
||||
text: qsTr("Text")
|
||||
tooltip: qsTr("Text")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
LineEdit {
|
||||
backendValue: backendValues.text
|
||||
showTranslateCheckBox: true
|
||||
implicitWidth: 180
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
// Label {
|
||||
// text: qsTr("Disable Button")
|
||||
// tooltip: qsTr("Disable Button")
|
||||
// }
|
||||
// SecondColumnLayout {
|
||||
// CheckBox {
|
||||
// backendValue: backendValues.disabled
|
||||
// implicitWidth: 180
|
||||
// }
|
||||
// ExpandingSpacer {
|
||||
// }
|
||||
// }
|
||||
|
||||
Label {
|
||||
text: qsTr("Delay")
|
||||
tooltip: qsTr("Delay")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
backendValue: backendValues.delay
|
||||
minimumValue: 0
|
||||
maximumValue: 60000
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Quick Extras module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.1
|
||||
import HelperWidgets 2.0
|
||||
import QtQuick.Layouts 1.0
|
||||
|
||||
Column {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
Section {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
caption: qsTr("Dial")
|
||||
|
||||
SectionLayout {
|
||||
Label {
|
||||
text: qsTr("Value")
|
||||
tooltip: qsTr("Value")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
backendValue: backendValues.value
|
||||
minimumValue: backendValues.minimumValue.value
|
||||
maximumValue: backendValues.maximumValue.value
|
||||
stepSize: 0.01
|
||||
decimals: 2
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Minimum Value")
|
||||
tooltip: qsTr("Minimum Value")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
backendValue: backendValues.minimumValue
|
||||
minimumValue: -1000
|
||||
maximumValue: backendValues.maximumValue.value
|
||||
stepSize: 0.01
|
||||
decimals: 2
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Maximum Value")
|
||||
tooltip: qsTr("Maximum Value")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
backendValue: backendValues.maximumValue
|
||||
minimumValue: backendValues.minimumValue.value
|
||||
maximumValue: 1000
|
||||
stepSize: 0.01
|
||||
decimals: 2
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Step Size")
|
||||
tooltip: qsTr("Step Size")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
backendValue: backendValues.stepSize
|
||||
minimumValue: 0
|
||||
maximumValue: backendValues.maximumValue.value
|
||||
stepSize: 0.01
|
||||
decimals: 2
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Tickmarks Visible")
|
||||
tooltip: qsTr("Tickmarks Visible")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
CheckBox {
|
||||
backendValue: backendValues.tickmarksVisible
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Quick Extras module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.1
|
||||
import HelperWidgets 2.0
|
||||
import QtQuick.Layouts 1.0
|
||||
|
||||
Column {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
Section {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
caption: qsTr("Gauge")
|
||||
|
||||
SectionLayout {
|
||||
|
||||
Label {
|
||||
text: qsTr("Value")
|
||||
tooltip: qsTr("Value")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
backendValue: backendValues.value
|
||||
minimumValue: backendValues.minimumValue.value
|
||||
maximumValue: backendValues.maximumValue.value
|
||||
stepSize: 0.01
|
||||
decimals: 2
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Minimum Value")
|
||||
tooltip: qsTr("Minimum Value")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
backendValue: backendValues.minimumValue
|
||||
minimumValue: 0
|
||||
maximumValue: backendValues.maximumValue.value
|
||||
stepSize: 0.01
|
||||
decimals: 2
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Maximum Value")
|
||||
tooltip: qsTr("Maximum Value")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
SpinBox {
|
||||
backendValue: backendValues.maximumValue
|
||||
minimumValue: backendValues.minimumValue.value
|
||||
maximumValue: 1000
|
||||
stepSize: 0.01
|
||||
decimals: 2
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
// Label {
|
||||
// text: qsTr("Orientation")
|
||||
// tooltip: qsTr("Orientation")
|
||||
// }
|
||||
// SecondColumnLayout {
|
||||
// ComboBox {
|
||||
// id: orientationComboBox
|
||||
// backendValue: backendValues.orientation
|
||||
// implicitWidth: 180
|
||||
// model: ["Vertical", "Horizontal"]
|
||||
// }
|
||||
// ExpandingSpacer {
|
||||
// }
|
||||
// }
|
||||
|
||||
// Label {
|
||||
// text: qsTr("Tickmark Alignment")
|
||||
// tooltip: qsTr("Tickmark Alignment")
|
||||
// }
|
||||
|
||||
// SecondColumnLayout {
|
||||
// ComboBox {
|
||||
// backendValue: backendValues.orientation
|
||||
// implicitWidth: 180
|
||||
// model: orientationComboBox.currentText === "Vertical" ? ["AlignLeft", "AlignRight"] : ["AlignTop", "AlignBottom"]
|
||||
// }
|
||||
// ExpandingSpacer {
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Quick Extras module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.1
|
||||
import HelperWidgets 2.0
|
||||
import QtQuick.Layouts 1.0
|
||||
import QtQuick.Controls 1.1 as Controls
|
||||
import QtQuick.Controls.Styles 1.1
|
||||
|
||||
Column {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
Section {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
caption: qsTr("Picture")
|
||||
|
||||
SectionLayout {
|
||||
Label {
|
||||
text: qsTr("Source")
|
||||
tooltip: qsTr("Source")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
LineEdit {
|
||||
backendValue: backendValues.source
|
||||
showTranslateCheckBox: false
|
||||
implicitWidth: 180
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Section {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
caption: qsTr("Color")
|
||||
|
||||
ColorEditor {
|
||||
caption: qsTr("Color")
|
||||
backendValue: backendValues.color
|
||||
supportGradient: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Quick Extras module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.1
|
||||
import HelperWidgets 2.0
|
||||
import QtQuick.Layouts 1.0
|
||||
import QtQuick.Controls 1.1 as Controls
|
||||
import QtQuick.Controls.Styles 1.1
|
||||
|
||||
Column {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
Section {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
caption: qsTr("PieMenu")
|
||||
|
||||
SectionLayout {
|
||||
Label {
|
||||
text: qsTr("Trigger Mode")
|
||||
tooltip: qsTr("Trigger Mode")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
// Work around ComboBox string => int problem.
|
||||
Controls.ComboBox {
|
||||
id: comboBox
|
||||
|
||||
property variant backendValue: backendValues.triggerMode
|
||||
|
||||
property color textColor: "white"
|
||||
implicitWidth: 180
|
||||
model: ["TriggerOnPress", "TriggerOnRelease", "TriggerOnClick"]
|
||||
|
||||
QtObject {
|
||||
property variant valueFromBackend: comboBox.backendValue
|
||||
onValueFromBackendChanged: {
|
||||
comboBox.currentIndex = comboBox.find(comboBox.backendValue.valueToString);
|
||||
}
|
||||
}
|
||||
|
||||
onCurrentTextChanged: {
|
||||
if (backendValue === undefined)
|
||||
return;
|
||||
|
||||
if (backendValue.value !== currentText)
|
||||
backendValue.value = comboBox.currentIndex
|
||||
}
|
||||
|
||||
style: CustomComboBoxStyle {
|
||||
textColor: comboBox.textColor
|
||||
}
|
||||
|
||||
ExtendedFunctionButton {
|
||||
x: 2
|
||||
y: 4
|
||||
backendValue: comboBox.backendValue
|
||||
visible: comboBox.enabled
|
||||
}
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Quick Extras module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.1
|
||||
import HelperWidgets 2.0
|
||||
import QtQuick.Layouts 1.0
|
||||
|
||||
Column {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
Section {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
caption: qsTr("StatusIndicator")
|
||||
|
||||
SectionLayout {
|
||||
Label {
|
||||
text: qsTr("Active")
|
||||
tooltip: qsTr("Active")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
CheckBox {
|
||||
backendValue: backendValues.active
|
||||
implicitWidth: 100
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Section {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
caption: qsTr("Color")
|
||||
|
||||
ColorEditor {
|
||||
caption: qsTr("Color")
|
||||
backendValue: backendValues.color
|
||||
supportGradient: false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Quick Extras module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.1
|
||||
import HelperWidgets 2.0
|
||||
import QtQuick.Layouts 1.0
|
||||
|
||||
Column {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
Section {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
caption: qsTr("ToggleButton")
|
||||
|
||||
SectionLayout {
|
||||
Label {
|
||||
text: qsTr("Text")
|
||||
tooltip: qsTr("Text")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
LineEdit {
|
||||
backendValue: backendValues.text
|
||||
showTranslateCheckBox: true
|
||||
implicitWidth: 180
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
|
||||
// Label {
|
||||
// text: qsTr("Disable Button")
|
||||
// tooltip: qsTr("Disable Button")
|
||||
// }
|
||||
// SecondColumnLayout {
|
||||
// CheckBox {
|
||||
// backendValue: backendValues.disabled
|
||||
// implicitWidth: 180
|
||||
// }
|
||||
// ExpandingSpacer {
|
||||
// }
|
||||
// }
|
||||
|
||||
Label {
|
||||
text: qsTr("Checked")
|
||||
tooltip: qsTr("Checked")
|
||||
}
|
||||
SecondColumnLayout {
|
||||
CheckBox {
|
||||
backendValue: backendValues.checked
|
||||
implicitWidth: 180
|
||||
}
|
||||
ExpandingSpacer {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 373 B |
|
After Width: | Height: | Size: 249 B |
|
After Width: | Height: | Size: 343 B |
|
After Width: | Height: | Size: 220 B |
|
After Width: | Height: | Size: 326 B |
|
After Width: | Height: | Size: 217 B |
|
After Width: | Height: | Size: 189 B |
|
After Width: | Height: | Size: 163 B |
|
After Width: | Height: | Size: 220 B |
|
After Width: | Height: | Size: 177 B |
|
After Width: | Height: | Size: 378 B |
|
After Width: | Height: | Size: 242 B |
|
After Width: | Height: | Size: 316 B |
|
After Width: | Height: | Size: 212 B |
|
After Width: | Height: | Size: 340 B |
|
After Width: | Height: | Size: 223 B |
|
After Width: | Height: | Size: 187 B |
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,122 @@
|
||||
MetaInfo {
|
||||
Type {
|
||||
name: "QtQuick.Extras.DelayButton"
|
||||
icon: "images/delaybutton-icon16.png"
|
||||
|
||||
ItemLibraryEntry {
|
||||
name: "Delay Button"
|
||||
category: "Qt Quick - Extras"
|
||||
libraryIcon: "images/delaybutton-icon.png"
|
||||
version: "1.0"
|
||||
requiredImport: "QtQuick.Extras"
|
||||
|
||||
Property {
|
||||
name: "text"
|
||||
type: "binding"
|
||||
value: "qsTr(\"Button\")"
|
||||
}
|
||||
}
|
||||
}
|
||||
Type {
|
||||
name: "QtQuick.Extras.ToggleButton"
|
||||
icon: "images/togglebutton-icon16.png"
|
||||
|
||||
ItemLibraryEntry {
|
||||
name: "Toggle Button"
|
||||
category: "Qt Quick - Extras"
|
||||
libraryIcon: "images/togglebutton-icon.png"
|
||||
version: "1.0"
|
||||
requiredImport: "QtQuick.Extras"
|
||||
|
||||
Property {
|
||||
name: "text"
|
||||
type: "binding"
|
||||
value: "qsTr(\"Button\")"
|
||||
}
|
||||
}
|
||||
}
|
||||
Type {
|
||||
name: "QtQuick.Extras.Gauge"
|
||||
icon: "images/gauge-icon16.png"
|
||||
|
||||
ItemLibraryEntry {
|
||||
name: "Gauge"
|
||||
category: "Qt Quick - Extras"
|
||||
libraryIcon: "images/gauge-icon.png"
|
||||
version: "1.0"
|
||||
requiredImport: "QtQuick.Extras"
|
||||
}
|
||||
}
|
||||
Type {
|
||||
name: "QtQuick.Extras.CircularGauge"
|
||||
icon: "images/circulargauge-icon16.png"
|
||||
|
||||
ItemLibraryEntry {
|
||||
name: "Circular Gauge"
|
||||
category: "Qt Quick - Extras"
|
||||
libraryIcon: "images/circulargauge-icon.png"
|
||||
version: "1.0"
|
||||
requiredImport: "QtQuick.Extras"
|
||||
}
|
||||
}
|
||||
Type {
|
||||
name: "QtQuick.Extras.PieMenu"
|
||||
icon: "images/piemenu-icon16.png"
|
||||
|
||||
ItemLibraryEntry {
|
||||
name: "Pie Menu"
|
||||
category: "Qt Quick - Extras"
|
||||
libraryIcon: "images/piemenu-icon.png"
|
||||
version: "1.0"
|
||||
requiredImport: "QtQuick.Extras"
|
||||
}
|
||||
}
|
||||
Type {
|
||||
name: "QtQuick.Extras.Dial"
|
||||
icon: "images/dial-icon16.png"
|
||||
|
||||
ItemLibraryEntry {
|
||||
name: "Dial"
|
||||
category: "Qt Quick - Extras"
|
||||
libraryIcon: "images/dial-icon.png"
|
||||
version: "1.0"
|
||||
requiredImport: "QtQuick.Extras"
|
||||
}
|
||||
}
|
||||
Type {
|
||||
name: "QtQuick.Extras.StatusIndicator"
|
||||
icon: "images/statusindicator-icon16.png"
|
||||
|
||||
ItemLibraryEntry {
|
||||
name: "Status Indicator"
|
||||
category: "Qt Quick - Extras"
|
||||
libraryIcon: "images/statusindicator-icon.png"
|
||||
version: "1.1"
|
||||
requiredImport: "QtQuick.Extras"
|
||||
}
|
||||
}
|
||||
Type {
|
||||
name: "QtQuick.Extras.Tumbler"
|
||||
icon: "images/tumbler-icon16.png"
|
||||
|
||||
ItemLibraryEntry {
|
||||
name: "Tumbler"
|
||||
category: "Qt Quick - Extras"
|
||||
libraryIcon: "images/tumbler-icon.png"
|
||||
version: "1.2"
|
||||
requiredImport: "QtQuick.Extras"
|
||||
}
|
||||
}
|
||||
Type {
|
||||
name: "QtQuick.Extras.Picture"
|
||||
icon: "images/picture-icon16.png"
|
||||
|
||||
ItemLibraryEntry {
|
||||
name: "Picture"
|
||||
category: "Qt Quick - Extras"
|
||||
libraryIcon: "images/picture-icon.png"
|
||||
version: "1.3"
|
||||
requiredImport: "QtQuick.Extras"
|
||||
}
|
||||
}
|
||||
}
|
||||