Complete GUI overhaul (from Qt Widgets to Qt Quick Controls 2)
Added chaperone profiles Added separate supersampling sliders for applications/compositor Added asynchronous reprojection on/off switch Merged in Microphone Control Overlay Added Push-to-Talk profiles Updated to OpenVR 1.0.3 Requires at least SteamVR beta 1477423729.
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** 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.2
|
||||
import QtQuick.Controls 1.4
|
||||
import QtQuick.Controls.Styles 1.4
|
||||
import QtQuick.Controls.Private 1.0
|
||||
|
||||
/*!
|
||||
\internal
|
||||
*/
|
||||
Button {
|
||||
id: button
|
||||
style: Settings.styleComponent(Settings.style, "CircularButtonStyle.qml", button)
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** 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.2
|
||||
import QtQuick.Extras 1.4
|
||||
import QtQuick.Extras.Private 1.0
|
||||
|
||||
QtObject {
|
||||
id: circularButtonStyleHelper
|
||||
|
||||
property Item control
|
||||
|
||||
property color buttonColorUpTop: "#e3e3e3"
|
||||
property color buttonColorUpBottom: "#b3b3b3"
|
||||
property color buttonColorDownTop: "#d3d3d3"
|
||||
property color buttonColorDownBottom: "#939393"
|
||||
property color outerArcColorTop: "#9c9c9c"
|
||||
property color outerArcColorBottom: Qt.rgba(0.941, 0.941, 0.941, 0.29)
|
||||
property color innerArcColorTop: "#e3e3e3"
|
||||
property color innerArcColorBottom: "#acacac"
|
||||
property real innerArcColorBottomStop: 0.4
|
||||
property color shineColor: Qt.rgba(1, 1, 1, 0.29)
|
||||
property real smallestAxis: control ? Math.min(control.width, control.height) : 0
|
||||
property real outerArcLineWidth: smallestAxis * 0.04
|
||||
property real innerArcLineWidth: Math.max(1, outerArcLineWidth * 0.1)
|
||||
property real shineArcLineWidth: Math.max(1, outerArcLineWidth * 0.1)
|
||||
property real implicitWidth: Math.round(TextSingleton.implicitHeight * 8)
|
||||
property real implicitHeight: Math.round(TextSingleton.implicitHeight * 8)
|
||||
|
||||
property color textColorUp: "#4e4e4e"
|
||||
property color textColorDown: "#303030"
|
||||
property color textRaisedColorUp: "#ffffff"
|
||||
property color textRaisedColorDown: "#e3e3e3"
|
||||
|
||||
property real radius: (smallestAxis * 0.5) - outerArcLineWidth - innerArcLineWidth
|
||||
property real halfRadius: radius / 2
|
||||
property real outerArcRadius: innerArcRadius + outerArcLineWidth / 2
|
||||
property real innerArcRadius: radius + innerArcLineWidth / 2
|
||||
property real shineArcRadius: outerArcRadius + outerArcLineWidth / 2 - shineArcLineWidth / 2
|
||||
property real zeroAngle: Math.PI * 0.5
|
||||
|
||||
property color buttonColorTop: control && control.pressed ? buttonColorDownTop : buttonColorUpTop
|
||||
property color buttonColorBottom: control && control.pressed ? buttonColorDownBottom : buttonColorUpBottom
|
||||
|
||||
function toPixels(percentageOfSmallestAxis) {
|
||||
return percentageOfSmallestAxis * smallestAxis;
|
||||
}
|
||||
|
||||
function paintBackground(ctx) {
|
||||
ctx.reset();
|
||||
|
||||
if (outerArcRadius < 0 || radius < 0)
|
||||
return;
|
||||
|
||||
var xCenter = ctx.canvas.width / 2;
|
||||
var yCenter = ctx.canvas.height / 2;
|
||||
|
||||
/* Draw outer arc */
|
||||
ctx.beginPath();
|
||||
ctx.lineWidth = outerArcLineWidth;
|
||||
ctx.arc(xCenter, yCenter, outerArcRadius, 0, Math.PI * 2, false);
|
||||
var gradient = ctx.createRadialGradient(xCenter, yCenter - halfRadius,
|
||||
halfRadius, xCenter, yCenter - halfRadius, radius);
|
||||
gradient.addColorStop(0, outerArcColorTop);
|
||||
gradient.addColorStop(1, outerArcColorBottom);
|
||||
ctx.strokeStyle = gradient;
|
||||
ctx.stroke();
|
||||
|
||||
/* Draw the shine along the bottom */
|
||||
ctx.beginPath();
|
||||
ctx.lineWidth = shineArcLineWidth;
|
||||
ctx.arc(xCenter, yCenter, shineArcRadius, 0, Math.PI, false);
|
||||
gradient = ctx.createLinearGradient(xCenter, yCenter + radius, xCenter, yCenter);
|
||||
gradient.addColorStop(0, shineColor);
|
||||
gradient.addColorStop(0.5, "rgba(255, 255, 255, 0)");
|
||||
ctx.strokeStyle = gradient;
|
||||
ctx.stroke();
|
||||
|
||||
/* Draw inner arc */
|
||||
ctx.beginPath();
|
||||
ctx.lineWidth = innerArcLineWidth + 1;
|
||||
ctx.arc(xCenter, yCenter, innerArcRadius, 0, Math.PI * 2, false);
|
||||
gradient = ctx.createLinearGradient(xCenter, yCenter - halfRadius,
|
||||
xCenter, yCenter + halfRadius);
|
||||
gradient.addColorStop(0, innerArcColorTop);
|
||||
gradient.addColorStop(innerArcColorBottomStop, innerArcColorBottom);
|
||||
ctx.strokeStyle = gradient;
|
||||
ctx.stroke();
|
||||
|
||||
/* Draw the button's body */
|
||||
ctx.beginPath();
|
||||
ctx.ellipse(xCenter - radius, yCenter - radius, radius * 2, radius * 2);
|
||||
gradient = ctx.createRadialGradient(xCenter, yCenter + radius * 0.85, radius,
|
||||
xCenter, yCenter + radius * 0.85, radius * 0.85);
|
||||
gradient.addColorStop(1, buttonColorTop);
|
||||
gradient.addColorStop(0, buttonColorBottom);
|
||||
ctx.fillStyle = gradient;
|
||||
ctx.fill();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** 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.2
|
||||
// Workaround for QTBUG-37751; we need this import for RangeModel, although we shouldn't.
|
||||
import QtQuick.Controls 1.1
|
||||
import QtQuick.Controls.Private 1.0
|
||||
import QtQuick.Extras 1.4
|
||||
import QtQuick.Extras.Private 1.0
|
||||
|
||||
Control {
|
||||
id: label
|
||||
style: Settings.styleComponent(Settings.style, "CircularTickmarkLabelStyle.qml", label)
|
||||
|
||||
property alias minimumValue: range.minimumValue
|
||||
|
||||
property alias maximumValue: range.maximumValue
|
||||
|
||||
property alias stepSize: range.stepSize
|
||||
|
||||
RangeModel {
|
||||
id: range
|
||||
minimumValue: 0
|
||||
maximumValue: 100
|
||||
stepSize: 0
|
||||
// Not used.
|
||||
value: minimumValue
|
||||
}
|
||||
|
||||
/*!
|
||||
This property determines the angle at which the first tickmark is drawn.
|
||||
*/
|
||||
property real minimumValueAngle: -145
|
||||
|
||||
/*!
|
||||
This property determines the angle at which the last tickmark is drawn.
|
||||
*/
|
||||
property real maximumValueAngle: 145
|
||||
|
||||
/*!
|
||||
The range between \l minimumValueAngle and \l maximumValueAngle, in
|
||||
degrees.
|
||||
*/
|
||||
readonly property real angleRange: maximumValueAngle - minimumValueAngle
|
||||
|
||||
/*!
|
||||
The interval at which tickmarks are displayed.
|
||||
*/
|
||||
property real tickmarkStepSize: 10
|
||||
|
||||
/*!
|
||||
The distance in pixels from the outside of the control (outerRadius) at
|
||||
which the outermost point of the tickmark line is drawn.
|
||||
*/
|
||||
property real tickmarkInset: 0.0
|
||||
|
||||
/*!
|
||||
The amount of tickmarks displayed.
|
||||
*/
|
||||
readonly property int tickmarkCount: __tickmarkCount
|
||||
|
||||
/*!
|
||||
The amount of minor tickmarks between each tickmark.
|
||||
*/
|
||||
property int minorTickmarkCount: 4
|
||||
|
||||
/*!
|
||||
The distance in pixels from the outside of the control (outerRadius) at
|
||||
which the outermost point of the minor tickmark line is drawn.
|
||||
*/
|
||||
property real minorTickmarkInset: 0.0
|
||||
|
||||
/*!
|
||||
The distance in pixels from the outside of the control (outerRadius) at
|
||||
which the center of the value marker text is drawn.
|
||||
*/
|
||||
property real labelInset: __style.__protectedScope.toPixels(0.19)
|
||||
|
||||
/*!
|
||||
The interval at which tickmark labels are displayed.
|
||||
*/
|
||||
property real labelStepSize: tickmarkStepSize
|
||||
|
||||
/*!
|
||||
The amount of tickmark labels displayed.
|
||||
*/
|
||||
readonly property int labelCount: (maximumValue - minimumValue) / labelStepSize + 1
|
||||
|
||||
/*! \internal */
|
||||
readonly property real __tickmarkCount: tickmarkStepSize > 0 ? (maximumValue - minimumValue) / tickmarkStepSize + 1 : 0
|
||||
|
||||
/*!
|
||||
This property determines whether or not the control displays tickmarks,
|
||||
minor tickmarks, and labels.
|
||||
*/
|
||||
property bool tickmarksVisible: true
|
||||
|
||||
/*!
|
||||
Returns \a value as an angle in degrees.
|
||||
|
||||
For example, if minimumValueAngle is set to \c 270 and maximumValueAngle
|
||||
is set to \c 90, this function will return \c 270 when passed
|
||||
minimumValue and \c 90 when passed maximumValue.
|
||||
*/
|
||||
function valueToAngle(value) {
|
||||
var normalised = (value - minimumValue) / (maximumValue - minimumValue);
|
||||
return (maximumValueAngle - minimumValueAngle) * normalised + minimumValueAngle;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** 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.0
|
||||
import QtGraphicalEffects 1.0
|
||||
import QtQuick.Controls.Styles 1.4
|
||||
import QtQuick.Controls.Private 1.0
|
||||
import QtQuick.Extras.Private 1.1
|
||||
import QtQuick.Extras.Private.CppUtils 1.0
|
||||
|
||||
Control {
|
||||
id: root
|
||||
x: handleArea.centerOfHandle.x - width / 2
|
||||
y: handleArea.centerOfHandle.y - height / 2
|
||||
|
||||
style: Settings.styleComponent(Settings.style, "HandleStyle.qml", root)
|
||||
|
||||
/*!
|
||||
The angle of the handle along the circumference of \l rotationRadius in
|
||||
radians, scaled to be in the range of 0.0 to 1.0.
|
||||
*/
|
||||
property alias value: range.value
|
||||
|
||||
RangeModel {
|
||||
id: range
|
||||
minimumValue: 0.0
|
||||
maximumValue: 1.0
|
||||
stepSize: 0
|
||||
value: minimumValue
|
||||
}
|
||||
|
||||
/*!
|
||||
The angle in radians where the dial starts.
|
||||
*/
|
||||
property real zeroAngle: 0
|
||||
|
||||
/*!
|
||||
The radius of the rotation of this handle.
|
||||
*/
|
||||
property real rotationRadius: 50
|
||||
|
||||
/*!
|
||||
The center of the dial. This is the origin point for the handle's
|
||||
rotation.
|
||||
*/
|
||||
property real dialXCenter: 0
|
||||
property real dialYCenter: 0
|
||||
|
||||
/*!
|
||||
This property holds the amount of extra room added to each side of
|
||||
the handle to make it easier to drag on touch devices.
|
||||
*/
|
||||
property real allowance: Math.max(width, height) * 1.5
|
||||
|
||||
/*
|
||||
The function used to determine the handle's value from the position of
|
||||
the mouse.
|
||||
|
||||
Can be set to provide custom value calculation. It expects these
|
||||
parameters: \c mouseX, \c mouseY, \c xCenter, \c yCenter, \c zeroAngle
|
||||
*/
|
||||
property var valueFromMouse: handleArea.valueFromMouse
|
||||
|
||||
property alias handleArea: handleArea
|
||||
|
||||
MouseArea {
|
||||
id: handleArea
|
||||
// Respond to value changes by calculating the new center of the handle.
|
||||
property point centerOfHandle: MathUtils.centerAlongCircle(dialXCenter, dialYCenter,
|
||||
0, 0, MathUtils.valueToAngle(value, 1, zeroAngle), rotationRadius);
|
||||
|
||||
anchors.fill: parent
|
||||
anchors.margins: -allowance
|
||||
|
||||
onPositionChanged: {
|
||||
// Whenever the handle is moved with the mouse, update the value.
|
||||
value = root.valueFromMouse(mouse.x + centerOfHandle.x - allowance,
|
||||
mouse.y + centerOfHandle.y - allowance, dialXCenter, dialYCenter, zeroAngle);
|
||||
}
|
||||
|
||||
// A helper function for onPositionChanged.
|
||||
function valueFromMouse(mouseX, mouseY, xCenter, yCenter, zeroAngle) {
|
||||
return MathUtils.angleToValue(
|
||||
MathUtils.halfPi - Math.atan2(mouseX - xCenter, mouseY - yCenter), 1, zeroAngle);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** 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.3
|
||||
import QtQuick.Extras 1.4
|
||||
import QtQuick.Extras.Private 1.0
|
||||
import QtQuick.Extras.Private.CppUtils 1.0
|
||||
|
||||
Loader {
|
||||
id: iconLoader
|
||||
active: iconSource != ""
|
||||
|
||||
property PieMenu control: null
|
||||
property QtObject styleData: null
|
||||
|
||||
readonly property string iconSource: styleData && styleData.index < control.__protectedScope.visibleItems.length
|
||||
? control.__protectedScope.visibleItems[styleData.index].iconSource
|
||||
: ""
|
||||
|
||||
sourceComponent: Image {
|
||||
id: iconImage
|
||||
source: iconSource
|
||||
x: pos.x
|
||||
y: pos.y
|
||||
scale: scaleFactor
|
||||
|
||||
readonly property point pos: MathUtils.centerAlongCircle(
|
||||
iconLoader.parent.width / 2, iconLoader.parent.height / 2, width, height,
|
||||
MathUtils.degToRadOffset(sectionCenterAngle(styleData.index)), control.__style.__iconOffset)
|
||||
|
||||
/*
|
||||
The icons should scale with the menu at some point, so that they
|
||||
stay within the bounds of each section. We down-scale the image by
|
||||
whichever of the following amounts are larger:
|
||||
|
||||
a) The amount by which the largest dimension's diagonal size exceeds
|
||||
the "selectable" radius. The selectable radius is the distance in pixels
|
||||
between lines A and B in the incredibly visually appealing image below:
|
||||
|
||||
__________
|
||||
- B -
|
||||
/ \
|
||||
/ ____ \
|
||||
| / A \ |
|
||||
--------| |--------
|
||||
|
||||
b) The amount by which the diagonal exceeds the circumference of
|
||||
one section.
|
||||
*/
|
||||
readonly property real scaleFactor: {
|
||||
var largestDimension = Math.max(iconImage.sourceSize.width, iconImage.sourceSize.height) * Math.sqrt(2);
|
||||
// TODO: add padding
|
||||
var radiusDifference = largestDimension - control.__style.__selectableRadius;
|
||||
var circumferenceDifference = largestDimension - Math.abs(control.__protectedScope.circumferenceOfSection);
|
||||
if (circumferenceDifference > 0 || radiusDifference > 0) {
|
||||
// We need to down-scale.
|
||||
if (radiusDifference > circumferenceDifference) {
|
||||
return control.__style.__selectableRadius / largestDimension;
|
||||
} else {
|
||||
return Math.abs(control.__protectedScope.circumferenceOfSection) / largestDimension;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** 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$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
pragma Singleton
|
||||
import QtQuick 2.1
|
||||
|
||||
Text {
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module QtQuick.Extras.Private
|
||||
@@ -0,0 +1,652 @@
|
||||
import QtQuick.tooling 1.2
|
||||
|
||||
// This file describes the plugin-supplied types contained in the library.
|
||||
// It is used for QML tooling purposes only.
|
||||
//
|
||||
// This file was auto-generated by:
|
||||
// 'qmlplugindump -nonrelocatable QtQuick.Extras 1.4'
|
||||
|
||||
Module {
|
||||
dependencies: [
|
||||
"QtGraphicalEffects 1.0",
|
||||
"QtGraphicalEffects.private 1.0",
|
||||
"QtQuick 2.0",
|
||||
"QtQuick.Window 2.1"
|
||||
]
|
||||
Component {
|
||||
name: "QQuickActivationMode"
|
||||
exports: ["QtQuick.Extras/ActivationMode 1.0"]
|
||||
isCreatable: false
|
||||
exportMetaObjectRevisions: [0]
|
||||
Enum {
|
||||
name: "ActivationMode"
|
||||
values: {
|
||||
"ActivateOnPress": 0,
|
||||
"ActivateOnRelease": 1,
|
||||
"ActivateOnClick": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
Component {
|
||||
name: "QQuickCircularProgressBar"
|
||||
defaultProperty: "data"
|
||||
prototype: "QQuickPaintedItem"
|
||||
exports: ["QtQuick.Extras.Private.CppUtils/CircularProgressBar 1.1"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
Property { name: "progress"; type: "double" }
|
||||
Property { name: "barWidth"; type: "double" }
|
||||
Property { name: "inset"; type: "double" }
|
||||
Property { name: "minimumValueAngle"; type: "double" }
|
||||
Property { name: "maximumValueAngle"; type: "double" }
|
||||
Property { name: "backgroundColor"; type: "QColor" }
|
||||
Signal {
|
||||
name: "progressChanged"
|
||||
Parameter { name: "progress"; type: "double" }
|
||||
}
|
||||
Signal {
|
||||
name: "barWidthChanged"
|
||||
Parameter { name: "barWidth"; type: "double" }
|
||||
}
|
||||
Signal {
|
||||
name: "insetChanged"
|
||||
Parameter { name: "inset"; type: "double" }
|
||||
}
|
||||
Signal {
|
||||
name: "minimumValueAngleChanged"
|
||||
Parameter { name: "minimumValueAngle"; type: "double" }
|
||||
}
|
||||
Signal {
|
||||
name: "maximumValueAngleChanged"
|
||||
Parameter { name: "maximumValueAngle"; type: "double" }
|
||||
}
|
||||
Signal {
|
||||
name: "backgroundColorChanged"
|
||||
Parameter { name: "backgroundColor"; type: "QColor" }
|
||||
}
|
||||
Method { name: "clearStops" }
|
||||
Method {
|
||||
name: "addStop"
|
||||
Parameter { name: "position"; type: "double" }
|
||||
Parameter { name: "color"; type: "QColor" }
|
||||
}
|
||||
Method { name: "redraw" }
|
||||
}
|
||||
Component {
|
||||
name: "QQuickFlatProgressBar"
|
||||
defaultProperty: "data"
|
||||
prototype: "QQuickPaintedItem"
|
||||
exports: ["QtQuick.Extras.Private.CppUtils/FlatProgressBar 1.1"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
Property { name: "stripeOffset"; type: "double" }
|
||||
Property { name: "progress"; type: "double" }
|
||||
Property { name: "indeterminate"; type: "bool" }
|
||||
Signal {
|
||||
name: "stripeOffsetChanged"
|
||||
Parameter { name: "stripeOffset"; type: "double" }
|
||||
}
|
||||
Signal {
|
||||
name: "progressChanged"
|
||||
Parameter { name: "progress"; type: "double" }
|
||||
}
|
||||
Signal {
|
||||
name: "indeterminateChanged"
|
||||
Parameter { name: "indeterminate"; type: "bool" }
|
||||
}
|
||||
Method { name: "repaint" }
|
||||
Method { name: "restartAnimation" }
|
||||
Method { name: "onVisibleChanged" }
|
||||
Method { name: "onWidthChanged" }
|
||||
Method { name: "onHeightChanged" }
|
||||
}
|
||||
Component {
|
||||
name: "QQuickMathUtils"
|
||||
prototype: "QObject"
|
||||
exports: ["QtQuick.Extras.Private.CppUtils/MathUtils 1.0"]
|
||||
isCreatable: false
|
||||
isSingleton: true
|
||||
exportMetaObjectRevisions: [0]
|
||||
Property { name: "pi2"; type: "double"; isReadonly: true }
|
||||
Method {
|
||||
name: "degToRad"
|
||||
type: "double"
|
||||
Parameter { name: "degrees"; type: "double" }
|
||||
}
|
||||
Method {
|
||||
name: "degToRadOffset"
|
||||
type: "double"
|
||||
Parameter { name: "degrees"; type: "double" }
|
||||
}
|
||||
Method {
|
||||
name: "radToDeg"
|
||||
type: "double"
|
||||
Parameter { name: "radians"; type: "double" }
|
||||
}
|
||||
Method {
|
||||
name: "radToDegOffset"
|
||||
type: "double"
|
||||
Parameter { name: "radians"; type: "double" }
|
||||
}
|
||||
Method {
|
||||
name: "centerAlongCircle"
|
||||
type: "QPointF"
|
||||
Parameter { name: "xCenter"; type: "double" }
|
||||
Parameter { name: "yCenter"; type: "double" }
|
||||
Parameter { name: "width"; type: "double" }
|
||||
Parameter { name: "height"; type: "double" }
|
||||
Parameter { name: "angleOnCircle"; type: "double" }
|
||||
Parameter { name: "distanceAlongRadius"; type: "double" }
|
||||
}
|
||||
Method {
|
||||
name: "roundEven"
|
||||
type: "double"
|
||||
Parameter { name: "number"; type: "double" }
|
||||
}
|
||||
}
|
||||
Component {
|
||||
name: "QQuickMouseThief"
|
||||
prototype: "QObject"
|
||||
exports: ["QtQuick.Extras.Private.CppUtils/MouseThief 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
Property { name: "receivedPressEvent"; type: "bool" }
|
||||
Signal {
|
||||
name: "pressed"
|
||||
Parameter { name: "mouseX"; type: "int" }
|
||||
Parameter { name: "mouseY"; type: "int" }
|
||||
}
|
||||
Signal {
|
||||
name: "released"
|
||||
Parameter { name: "mouseX"; type: "int" }
|
||||
Parameter { name: "mouseY"; type: "int" }
|
||||
}
|
||||
Signal {
|
||||
name: "clicked"
|
||||
Parameter { name: "mouseX"; type: "int" }
|
||||
Parameter { name: "mouseY"; type: "int" }
|
||||
}
|
||||
Signal {
|
||||
name: "touchUpdate"
|
||||
Parameter { name: "mouseX"; type: "int" }
|
||||
Parameter { name: "mouseY"; type: "int" }
|
||||
}
|
||||
Signal { name: "handledEventChanged" }
|
||||
Method {
|
||||
name: "grabMouse"
|
||||
Parameter { name: "item"; type: "QQuickItem"; isPointer: true }
|
||||
}
|
||||
Method { name: "ungrabMouse" }
|
||||
Method { name: "acceptCurrentEvent" }
|
||||
}
|
||||
Component {
|
||||
name: "QQuickPicture"
|
||||
defaultProperty: "data"
|
||||
prototype: "QQuickPaintedItem"
|
||||
exports: ["QtQuick.Extras/Picture 1.4"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
Property { name: "source"; type: "QUrl" }
|
||||
Property { name: "color"; type: "QColor" }
|
||||
}
|
||||
Component {
|
||||
name: "QQuickTriggerMode"
|
||||
exports: ["QtQuick.Extras/TriggerMode 1.3"]
|
||||
isCreatable: false
|
||||
exportMetaObjectRevisions: [0]
|
||||
Enum {
|
||||
name: "TriggerMode"
|
||||
values: {
|
||||
"TriggerOnPress": 0,
|
||||
"TriggerOnRelease": 1,
|
||||
"TriggerOnClick": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras.Private/CircularButton 1.0"
|
||||
exports: ["QtQuick.Extras.Private/CircularButton 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "isDefault"; type: "bool" }
|
||||
Property { name: "menu"; type: "Menu_QMLTYPE_28"; isPointer: true }
|
||||
Property { name: "checkable"; type: "bool" }
|
||||
Property { name: "checked"; type: "bool" }
|
||||
Property { name: "exclusiveGroup"; type: "QQuickExclusiveGroup"; isPointer: true }
|
||||
Property { name: "action"; type: "QQuickAction"; isPointer: true }
|
||||
Property { name: "activeFocusOnPress"; type: "bool" }
|
||||
Property { name: "text"; type: "string" }
|
||||
Property { name: "tooltip"; type: "string" }
|
||||
Property { name: "iconSource"; type: "QUrl" }
|
||||
Property { name: "iconName"; type: "string" }
|
||||
Property { name: "__position"; type: "string" }
|
||||
Property { name: "__iconOverriden"; type: "bool"; isReadonly: true }
|
||||
Property { name: "__action"; type: "QQuickAction"; isPointer: true }
|
||||
Property { name: "__iconAction"; type: "QQuickAction"; isReadonly: true; isPointer: true }
|
||||
Property { name: "__behavior"; type: "QVariant" }
|
||||
Property { name: "__effectivePressed"; type: "bool" }
|
||||
Property { name: "pressed"; type: "bool"; isReadonly: true }
|
||||
Property { name: "hovered"; type: "bool"; isReadonly: true }
|
||||
Signal { name: "clicked" }
|
||||
Method { name: "accessiblePressAction"; type: "QVariant" }
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QObject"
|
||||
name: "QtQuick.Extras.Private/CircularButtonStyleHelper 1.0"
|
||||
exports: ["QtQuick.Extras.Private/CircularButtonStyleHelper 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
Property { name: "control"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "buttonColorUpTop"; type: "QColor" }
|
||||
Property { name: "buttonColorUpBottom"; type: "QColor" }
|
||||
Property { name: "buttonColorDownTop"; type: "QColor" }
|
||||
Property { name: "buttonColorDownBottom"; type: "QColor" }
|
||||
Property { name: "outerArcColorTop"; type: "QColor" }
|
||||
Property { name: "outerArcColorBottom"; type: "QColor" }
|
||||
Property { name: "innerArcColorTop"; type: "QColor" }
|
||||
Property { name: "innerArcColorBottom"; type: "QColor" }
|
||||
Property { name: "innerArcColorBottomStop"; type: "double" }
|
||||
Property { name: "shineColor"; type: "QColor" }
|
||||
Property { name: "smallestAxis"; type: "double" }
|
||||
Property { name: "outerArcLineWidth"; type: "double" }
|
||||
Property { name: "innerArcLineWidth"; type: "double" }
|
||||
Property { name: "shineArcLineWidth"; type: "double" }
|
||||
Property { name: "implicitWidth"; type: "double" }
|
||||
Property { name: "implicitHeight"; type: "double" }
|
||||
Property { name: "textColorUp"; type: "QColor" }
|
||||
Property { name: "textColorDown"; type: "QColor" }
|
||||
Property { name: "textRaisedColorUp"; type: "QColor" }
|
||||
Property { name: "textRaisedColorDown"; type: "QColor" }
|
||||
Property { name: "radius"; type: "double" }
|
||||
Property { name: "halfRadius"; type: "double" }
|
||||
Property { name: "outerArcRadius"; type: "double" }
|
||||
Property { name: "innerArcRadius"; type: "double" }
|
||||
Property { name: "shineArcRadius"; type: "double" }
|
||||
Property { name: "zeroAngle"; type: "double" }
|
||||
Property { name: "buttonColorTop"; type: "QColor" }
|
||||
Property { name: "buttonColorBottom"; type: "QColor" }
|
||||
Method {
|
||||
name: "toPixels"
|
||||
type: "QVariant"
|
||||
Parameter { name: "percentageOfSmallestAxis"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "paintBackground"
|
||||
type: "QVariant"
|
||||
Parameter { name: "ctx"; type: "QVariant" }
|
||||
}
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras/CircularGauge 1.0"
|
||||
exports: ["QtQuick.Extras/CircularGauge 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "tickmarksVisible"; type: "bool" }
|
||||
Property { name: "minimumValue"; type: "double" }
|
||||
Property { name: "maximumValue"; type: "double" }
|
||||
Property { name: "value"; type: "double" }
|
||||
Property { name: "stepSize"; type: "double" }
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras.Private/CircularTickmarkLabel 1.0"
|
||||
exports: ["QtQuick.Extras.Private/CircularTickmarkLabel 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "minimumValueAngle"; type: "double" }
|
||||
Property { name: "maximumValueAngle"; type: "double" }
|
||||
Property { name: "angleRange"; type: "double"; isReadonly: true }
|
||||
Property { name: "tickmarkStepSize"; type: "double" }
|
||||
Property { name: "tickmarkInset"; type: "double" }
|
||||
Property { name: "tickmarkCount"; type: "int"; isReadonly: true }
|
||||
Property { name: "minorTickmarkCount"; type: "int" }
|
||||
Property { name: "minorTickmarkInset"; type: "double" }
|
||||
Property { name: "labelInset"; type: "double" }
|
||||
Property { name: "labelStepSize"; type: "double" }
|
||||
Property { name: "labelCount"; type: "int"; isReadonly: true }
|
||||
Property { name: "__tickmarkCount"; type: "double"; isReadonly: true }
|
||||
Property { name: "tickmarksVisible"; type: "bool" }
|
||||
Property { name: "minimumValue"; type: "double" }
|
||||
Property { name: "maximumValue"; type: "double" }
|
||||
Property { name: "stepSize"; type: "double" }
|
||||
Method {
|
||||
name: "valueToAngle"
|
||||
type: "QVariant"
|
||||
Parameter { name: "value"; type: "QVariant" }
|
||||
}
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras/DelayButton 1.0"
|
||||
exports: ["QtQuick.Extras/DelayButton 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "delay"; type: "int" }
|
||||
Property { name: "__progress"; type: "double" }
|
||||
Property { name: "progress"; type: "double"; isReadonly: true }
|
||||
Signal { name: "activated" }
|
||||
Property { name: "isDefault"; type: "bool" }
|
||||
Property { name: "menu"; type: "Menu_QMLTYPE_28"; isPointer: true }
|
||||
Property { name: "checkable"; type: "bool" }
|
||||
Property { name: "checked"; type: "bool" }
|
||||
Property { name: "exclusiveGroup"; type: "QQuickExclusiveGroup"; isPointer: true }
|
||||
Property { name: "action"; type: "QQuickAction"; isPointer: true }
|
||||
Property { name: "activeFocusOnPress"; type: "bool" }
|
||||
Property { name: "text"; type: "string" }
|
||||
Property { name: "tooltip"; type: "string" }
|
||||
Property { name: "iconSource"; type: "QUrl" }
|
||||
Property { name: "iconName"; type: "string" }
|
||||
Property { name: "__position"; type: "string" }
|
||||
Property { name: "__iconOverriden"; type: "bool"; isReadonly: true }
|
||||
Property { name: "__action"; type: "QQuickAction"; isPointer: true }
|
||||
Property { name: "__iconAction"; type: "QQuickAction"; isReadonly: true; isPointer: true }
|
||||
Property { name: "__behavior"; type: "QVariant" }
|
||||
Property { name: "__effectivePressed"; type: "bool" }
|
||||
Property { name: "pressed"; type: "bool"; isReadonly: true }
|
||||
Property { name: "hovered"; type: "bool"; isReadonly: true }
|
||||
Signal { name: "clicked" }
|
||||
Method { name: "accessiblePressAction"; type: "QVariant" }
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras/Dial 1.0"
|
||||
exports: ["QtQuick.Extras/Dial 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "__wrap"; type: "bool" }
|
||||
Property { name: "activeFocusOnPress"; type: "bool" }
|
||||
Property { name: "tickmarksVisible"; type: "bool" }
|
||||
Property { name: "value"; type: "double" }
|
||||
Property { name: "minimumValue"; type: "double" }
|
||||
Property { name: "maximumValue"; type: "double" }
|
||||
Property { name: "hovered"; type: "bool"; isReadonly: true }
|
||||
Property { name: "stepSize"; type: "double" }
|
||||
Property { name: "pressed"; type: "bool"; isReadonly: true }
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras/Dial 1.1"
|
||||
exports: ["QtQuick.Extras/Dial 1.1"]
|
||||
exportMetaObjectRevisions: [1]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "__wrap"; type: "bool" }
|
||||
Property { name: "activeFocusOnPress"; type: "bool" }
|
||||
Property { name: "tickmarksVisible"; type: "bool" }
|
||||
Property { name: "value"; type: "double" }
|
||||
Property { name: "minimumValue"; type: "double" }
|
||||
Property { name: "maximumValue"; type: "double" }
|
||||
Property { name: "hovered"; type: "bool"; isReadonly: true }
|
||||
Property { name: "stepSize"; type: "double" }
|
||||
Property { name: "pressed"; type: "bool"; isReadonly: true }
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras/Gauge 1.0"
|
||||
exports: ["QtQuick.Extras/Gauge 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "orientation"; type: "int" }
|
||||
Property { name: "tickmarkAlignment"; type: "int" }
|
||||
Property { name: "__tickmarkAlignment"; type: "int" }
|
||||
Property { name: "__tickmarksInside"; type: "bool" }
|
||||
Property { name: "tickmarkStepSize"; type: "double" }
|
||||
Property { name: "minorTickmarkCount"; type: "int" }
|
||||
Property { name: "formatValue"; type: "QVariant" }
|
||||
Property { name: "minimumValue"; type: "double" }
|
||||
Property { name: "value"; type: "double" }
|
||||
Property { name: "maximumValue"; type: "double" }
|
||||
Property { name: "font"; type: "QFont" }
|
||||
Property { name: "__hiddenText"; type: "QQuickText"; isReadonly: true; isPointer: true }
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras/PieMenu 1.0"
|
||||
exports: ["QtQuick.Extras/PieMenu 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
defaultProperty: "menuItems"
|
||||
Property { name: "selectionAngle"; type: "double"; isReadonly: true }
|
||||
Property { name: "triggerMode"; type: "int" }
|
||||
Property { name: "title"; type: "string" }
|
||||
Property { name: "boundingItem"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "__protectedScope"; type: "QObject"; isPointer: true }
|
||||
Property { name: "activationMode"; type: "int" }
|
||||
Property { name: "menuItems"; type: "QQuickMenuItem"; isList: true; isReadonly: true }
|
||||
Property { name: "currentIndex"; type: "int"; isReadonly: true }
|
||||
Property { name: "currentItem"; type: "QQuickMenuItem"; isReadonly: true; isPointer: true }
|
||||
Property { name: "__mouseThief"; type: "QQuickMouseThief"; isReadonly: true; isPointer: true }
|
||||
Method {
|
||||
name: "popup"
|
||||
type: "QVariant"
|
||||
Parameter { name: "x"; type: "QVariant" }
|
||||
Parameter { name: "y"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "addItem"
|
||||
type: "QVariant"
|
||||
Parameter { name: "text"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "insertItem"
|
||||
type: "QVariant"
|
||||
Parameter { name: "before"; type: "QVariant" }
|
||||
Parameter { name: "text"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "removeItem"
|
||||
type: "QVariant"
|
||||
Parameter { name: "item"; type: "QVariant" }
|
||||
}
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickLoader"
|
||||
name: "QtQuick.Extras.Private/PieMenuIcon 1.0"
|
||||
exports: ["QtQuick.Extras.Private/PieMenuIcon 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "control"; type: "PieMenu_QMLTYPE_84"; isPointer: true }
|
||||
Property { name: "styleData"; type: "QObject"; isPointer: true }
|
||||
Property { name: "iconSource"; type: "string"; isReadonly: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras/StatusIndicator 1.1"
|
||||
exports: ["QtQuick.Extras/StatusIndicator 1.1"]
|
||||
exportMetaObjectRevisions: [1]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "active"; type: "bool" }
|
||||
Property { name: "color"; type: "QColor" }
|
||||
Property { name: "on"; type: "bool" }
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras/StatusIndicator 1.0"
|
||||
exports: ["QtQuick.Extras/StatusIndicator 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "active"; type: "bool" }
|
||||
Property { name: "color"; type: "QColor" }
|
||||
Property { name: "on"; type: "bool" }
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickText"
|
||||
name: "QtQuick.Extras.Private/TextSingleton 1.0"
|
||||
exports: ["QtQuick.Extras.Private/TextSingleton 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
isCreatable: false
|
||||
isSingleton: true
|
||||
defaultProperty: "data"
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras/ToggleButton 1.0"
|
||||
exports: ["QtQuick.Extras/ToggleButton 1.0"]
|
||||
exportMetaObjectRevisions: [0]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "isDefault"; type: "bool" }
|
||||
Property { name: "menu"; type: "Menu_QMLTYPE_28"; isPointer: true }
|
||||
Property { name: "checkable"; type: "bool" }
|
||||
Property { name: "checked"; type: "bool" }
|
||||
Property { name: "exclusiveGroup"; type: "QQuickExclusiveGroup"; isPointer: true }
|
||||
Property { name: "action"; type: "QQuickAction"; isPointer: true }
|
||||
Property { name: "activeFocusOnPress"; type: "bool" }
|
||||
Property { name: "text"; type: "string" }
|
||||
Property { name: "tooltip"; type: "string" }
|
||||
Property { name: "iconSource"; type: "QUrl" }
|
||||
Property { name: "iconName"; type: "string" }
|
||||
Property { name: "__position"; type: "string" }
|
||||
Property { name: "__iconOverriden"; type: "bool"; isReadonly: true }
|
||||
Property { name: "__action"; type: "QQuickAction"; isPointer: true }
|
||||
Property { name: "__iconAction"; type: "QQuickAction"; isReadonly: true; isPointer: true }
|
||||
Property { name: "__behavior"; type: "QVariant" }
|
||||
Property { name: "__effectivePressed"; type: "bool" }
|
||||
Property { name: "pressed"; type: "bool"; isReadonly: true }
|
||||
Property { name: "hovered"; type: "bool"; isReadonly: true }
|
||||
Signal { name: "clicked" }
|
||||
Method { name: "accessiblePressAction"; type: "QVariant" }
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QQuickFocusScope"
|
||||
name: "QtQuick.Extras/Tumbler 1.2"
|
||||
exports: ["QtQuick.Extras/Tumbler 1.2"]
|
||||
exportMetaObjectRevisions: [2]
|
||||
isComposite: true
|
||||
defaultProperty: "data"
|
||||
Property { name: "__highlightMoveDuration"; type: "int" }
|
||||
Property { name: "columnCount"; type: "int"; isReadonly: true }
|
||||
Property { name: "__columnRow"; type: "QQuickRow"; isReadonly: true; isPointer: true }
|
||||
Property { name: "__movementDelayTimer"; type: "QQmlTimer"; isReadonly: true; isPointer: true }
|
||||
Method {
|
||||
name: "__isValidColumnIndex"
|
||||
type: "QVariant"
|
||||
Parameter { name: "index"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "__isValidColumnAndItemIndex"
|
||||
type: "QVariant"
|
||||
Parameter { name: "columnIndex"; type: "QVariant" }
|
||||
Parameter { name: "itemIndex"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "currentIndexAt"
|
||||
type: "QVariant"
|
||||
Parameter { name: "columnIndex"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "setCurrentIndexAt"
|
||||
type: "QVariant"
|
||||
Parameter { name: "columnIndex"; type: "QVariant" }
|
||||
Parameter { name: "itemIndex"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "getColumn"
|
||||
type: "QVariant"
|
||||
Parameter { name: "columnIndex"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "addColumn"
|
||||
type: "QVariant"
|
||||
Parameter { name: "column"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "insertColumn"
|
||||
type: "QVariant"
|
||||
Parameter { name: "index"; type: "QVariant" }
|
||||
Parameter { name: "column"; type: "QVariant" }
|
||||
}
|
||||
Method {
|
||||
name: "__viewAt"
|
||||
type: "QVariant"
|
||||
Parameter { name: "index"; type: "QVariant" }
|
||||
}
|
||||
Property { name: "style"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "__style"; type: "QObject"; isPointer: true }
|
||||
Property { name: "__panel"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "styleHints"; type: "QVariant" }
|
||||
Property { name: "__styleData"; type: "QObject"; isPointer: true }
|
||||
}
|
||||
Component {
|
||||
prototype: "QObject"
|
||||
name: "QtQuick.Extras/TumblerColumn 1.2"
|
||||
exports: ["QtQuick.Extras/TumblerColumn 1.2"]
|
||||
exportMetaObjectRevisions: [2]
|
||||
isComposite: true
|
||||
Property { name: "__tumbler"; type: "QQuickItem"; isPointer: true }
|
||||
Property { name: "__index"; type: "int" }
|
||||
Property { name: "__currentIndex"; type: "int" }
|
||||
Property { name: "model"; type: "QVariant" }
|
||||
Property { name: "role"; type: "string" }
|
||||
Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "highlight"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "columnForeground"; type: "QQmlComponent"; isPointer: true }
|
||||
Property { name: "visible"; type: "bool" }
|
||||
Property { name: "activeFocus"; type: "bool"; isReadonly: true }
|
||||
Property { name: "width"; type: "double" }
|
||||
Property { name: "currentIndex"; type: "int"; isReadonly: true }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
module QtQuick.Extras
|
||||
plugin qtquickextrasplugin
|
||||
classname QtQuickExtrasPlugin
|
||||
#typeinfo plugins.qmltypes
|
||||
|
||||
depends QtGraphicalEffects 1.0
|
||||
Binary file not shown.
Reference in New Issue
Block a user