Initial commit
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
// 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 QtQuick.Controls.Material
|
||||
import QtQuick.Controls.Material.impl
|
||||
|
||||
/*
|
||||
A implementation of CSS's box-shadow, used by ElevationEffect for a Material Design
|
||||
elevation shadow effect.
|
||||
*/
|
||||
RectangularGlow {
|
||||
// The 4 properties from CSS box-shadow, plus the inherited color property
|
||||
property int offsetX
|
||||
property int offsetY
|
||||
property int blurRadius
|
||||
property int spreadRadius
|
||||
|
||||
// The strength of the shadow. We have this because RectangularGlow spreads
|
||||
// out the shadow thinly, whereas lower elevation levels in Material 3
|
||||
// are less spread out and stronger. This is only used for items with fully-rounded
|
||||
// corners, like buttons.
|
||||
property real strength
|
||||
|
||||
// The source item the shadow is being applied to, used for correctly
|
||||
// calculating the corner radious
|
||||
property Item source
|
||||
|
||||
property bool fullWidth
|
||||
property bool fullHeight
|
||||
|
||||
// qmllint disable unqualified
|
||||
// Intentionally duck-typed (QTBUG-94807)
|
||||
readonly property real sourceRadius: source && source.radius || 0
|
||||
|
||||
x: (parent.width - width)/2 + offsetX
|
||||
y: (parent.height - height)/2 + offsetY
|
||||
|
||||
implicitWidth: source ? source.width : parent.width
|
||||
implicitHeight: source ? source.height : parent.height
|
||||
|
||||
width: implicitWidth + 2 * spreadRadius + (fullWidth ? 2 * cornerRadius : 0)
|
||||
height: implicitHeight + 2 * spreadRadius + (fullHeight ? 2 * cornerRadius : 0)
|
||||
glowRadius: blurRadius/2
|
||||
spread: strength
|
||||
|
||||
cornerRadius: blurRadius + sourceRadius
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
// 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 QtQuick.Controls.Material
|
||||
import QtQuick.Controls.Material.impl
|
||||
|
||||
Rectangle {
|
||||
id: indicatorItem
|
||||
implicitWidth: 18
|
||||
implicitHeight: 18
|
||||
color: "transparent"
|
||||
border.color: !control.enabled ? control.Material.hintTextColor
|
||||
: checkState !== Qt.Unchecked ? control.Material.accentColor : control.Material.secondaryTextColor
|
||||
border.width: checkState !== Qt.Unchecked ? width / 2 : 2
|
||||
radius: 2
|
||||
|
||||
property Item control
|
||||
property int checkState: control.checkState
|
||||
|
||||
Behavior on border.width {
|
||||
NumberAnimation {
|
||||
duration: 100
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
|
||||
Behavior on border.color {
|
||||
ColorAnimation {
|
||||
duration: 100
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: This needs to be transparent
|
||||
Image {
|
||||
id: checkImage
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
width: 14
|
||||
height: 14
|
||||
source: "qrc:/qt-project.org/imports/QtQuick/Controls/Material/images/check.png"
|
||||
fillMode: Image.PreserveAspectFit
|
||||
|
||||
scale: indicatorItem.checkState === Qt.Checked ? 1 : 0
|
||||
Behavior on scale { NumberAnimation { duration: 100 } }
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
width: 12
|
||||
height: 3
|
||||
|
||||
scale: indicatorItem.checkState === Qt.PartiallyChecked ? 1 : 0
|
||||
Behavior on scale { NumberAnimation { duration: 100 } }
|
||||
}
|
||||
|
||||
states: [
|
||||
State {
|
||||
name: "checked"
|
||||
when: indicatorItem.checkState === Qt.Checked
|
||||
},
|
||||
State {
|
||||
name: "partiallychecked"
|
||||
when: indicatorItem.checkState === Qt.PartiallyChecked
|
||||
}
|
||||
]
|
||||
|
||||
transitions: Transition {
|
||||
SequentialAnimation {
|
||||
NumberAnimation {
|
||||
target: indicatorItem
|
||||
property: "scale"
|
||||
// Go down 2 pixels in size.
|
||||
to: 1 - 2 / indicatorItem.width
|
||||
duration: 120
|
||||
}
|
||||
NumberAnimation {
|
||||
target: indicatorItem
|
||||
property: "scale"
|
||||
to: 1
|
||||
duration: 120
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// 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 QtQuick.Controls.Material
|
||||
|
||||
Rectangle {
|
||||
id: cursor
|
||||
|
||||
color: parent.Material.accentColor
|
||||
width: 2
|
||||
visible: parent.activeFocus && !parent.readOnly && parent.selectionStart === parent.selectionEnd
|
||||
|
||||
Connections {
|
||||
target: cursor.parent
|
||||
function onCursorPositionChanged() {
|
||||
// keep a moving cursor visible
|
||||
cursor.opacity = 1
|
||||
timer.restart()
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: timer
|
||||
running: cursor.parent.activeFocus && !cursor.parent.readOnly && interval != 0
|
||||
repeat: true
|
||||
interval: Application.styleHints.cursorFlashTime / 2
|
||||
onTriggered: cursor.opacity = !cursor.opacity ? 1 : 0
|
||||
// force the cursor visible when gaining focus
|
||||
onRunningChanged: cursor.opacity = 1
|
||||
}
|
||||
}
|
||||
+258
@@ -0,0 +1,258 @@
|
||||
// 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 QtQuick.Controls.Material
|
||||
import QtQuick.Controls.Material.impl
|
||||
|
||||
/*
|
||||
An effect for standard Material Design elevation shadows. Useful for using as \c layer.effect.
|
||||
*/
|
||||
Item {
|
||||
id: effect
|
||||
|
||||
/*
|
||||
The source the effect is applied to.
|
||||
*/
|
||||
property var source
|
||||
|
||||
/*
|
||||
The elevation of the \l source Item.
|
||||
*/
|
||||
property int elevation: 0
|
||||
|
||||
/*
|
||||
Set to \c true if the \l source Item is the same width as its parent and the shadow
|
||||
should be full width instead of rounding around the corner of the Item.
|
||||
|
||||
\sa fullHeight
|
||||
*/
|
||||
property bool fullWidth: false
|
||||
|
||||
/*
|
||||
Set to \c true if the \l source Item is the same height as its parent and the shadow
|
||||
should be full height instead of rounding around the corner of the Item.
|
||||
|
||||
\sa fullWidth
|
||||
*/
|
||||
property bool fullHeight: false
|
||||
|
||||
/*
|
||||
\internal
|
||||
|
||||
The actual source Item the effect is applied to.
|
||||
*/
|
||||
readonly property Item sourceItem: source.sourceItem
|
||||
|
||||
/*
|
||||
* The following shadow values are taken from Angular Material
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014-2016 Google, Inc. http://angularjs.org
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
/*
|
||||
\internal
|
||||
|
||||
The shadows to use for each possible elevation. There are three shadows that when combined
|
||||
make up the elevation.
|
||||
*/
|
||||
property var _shadows: _defaultShadows
|
||||
|
||||
readonly property var _defaultShadows: [
|
||||
{ // 0
|
||||
angularValues: [
|
||||
{offset: 0, blur: 0, spread: 0},
|
||||
{offset: 0, blur: 0, spread: 0},
|
||||
{offset: 0, blur: 0, spread: 0}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 1
|
||||
angularValues: [
|
||||
{offset: 1, blur: 3, spread: 0},
|
||||
{offset: 1, blur: 1, spread: 0},
|
||||
{offset: 2, blur: 1, spread: -1}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 2
|
||||
angularValues: [
|
||||
{offset: 1, blur: 5, spread: 0},
|
||||
{offset: 2, blur: 2, spread: 0},
|
||||
{offset: 3, blur: 1, spread: -2}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 3
|
||||
angularValues: [
|
||||
{offset: 1, blur: 8, spread: 0},
|
||||
{offset: 3, blur: 4, spread: 0},
|
||||
{offset: 3, blur: 3, spread: -2}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 4
|
||||
angularValues: [
|
||||
{offset: 2, blur: 4, spread: -1},
|
||||
{offset: 4, blur: 5, spread: 0},
|
||||
{offset: 1, blur: 10, spread: 0}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 5
|
||||
angularValues: [
|
||||
{offset: 3, blur: 5, spread: -1},
|
||||
{offset: 5, blur: 8, spread: 0},
|
||||
{offset: 1, blur: 14, spread: 0}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 6
|
||||
angularValues: [
|
||||
{offset: 3, blur: 5, spread: -1},
|
||||
{offset: 6, blur: 10, spread: 0},
|
||||
{offset: 1, blur: 18, spread: 0}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 7
|
||||
angularValues: [
|
||||
{offset: 4, blur: 5, spread: -2},
|
||||
{offset: 7, blur: 10, spread: 1},
|
||||
{offset: 2, blur: 16, spread: 1}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 8
|
||||
angularValues: [
|
||||
{offset: 5, blur: 5, spread: -3},
|
||||
{offset: 8, blur: 10, spread: 1},
|
||||
{offset: 3, blur: 14, spread: 2}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 9
|
||||
angularValues: [
|
||||
{offset: 5, blur: 6, spread: -3},
|
||||
{offset: 9, blur: 12, spread: 1},
|
||||
{offset: 3, blur: 16, spread: 2}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 10
|
||||
angularValues: [
|
||||
{offset: 6, blur: 6, spread: -3},
|
||||
{offset: 10, blur: 14, spread: 1},
|
||||
{offset: 4, blur: 18, spread: 3}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 11
|
||||
angularValues: [
|
||||
{offset: 6, blur: 7, spread: -4},
|
||||
{offset: 11, blur: 15, spread: 1},
|
||||
{offset: 4, blur: 20, spread: 3}
|
||||
],
|
||||
strength: 0.05
|
||||
},
|
||||
{ // 12
|
||||
angularValues: [
|
||||
{offset: 7, blur: 8, spread: -4},
|
||||
{offset: 12, blur: 17, spread: 2},
|
||||
{offset: 5, blur: 22, spread: 4}
|
||||
],
|
||||
strength: 0.05
|
||||
}
|
||||
]
|
||||
|
||||
/*
|
||||
\internal
|
||||
|
||||
The current shadow based on the elevation.
|
||||
*/
|
||||
readonly property var _shadow: _shadows[Math.max(0, Math.min(elevation, _shadows.length - 1))]
|
||||
|
||||
// Nest the shadows and source view in two items rendered as a layer
|
||||
// so the shadow is not clipped by the bounds of the source view
|
||||
Item {
|
||||
property int margin: -100
|
||||
|
||||
x: margin
|
||||
y: margin
|
||||
width: parent.width - 2 * margin
|
||||
height: parent.height - 2 * margin
|
||||
|
||||
// By rendering as a layer, the shadow will never show through the source item,
|
||||
// even when the source item's opacity is less than 1
|
||||
layer.enabled: true
|
||||
layer.smooth: true
|
||||
|
||||
// The box shadows automatically pick up the size of the source Item and not
|
||||
// the size of the parent, so we don't need to worry about the extra padding
|
||||
// in the parent Item
|
||||
BoxShadow {
|
||||
offsetY: effect._shadow.angularValues[0].offset
|
||||
blurRadius: effect._shadow.angularValues[0].blur
|
||||
spreadRadius: effect._shadow.angularValues[0].spread
|
||||
strength: effect._shadow.strength
|
||||
color: Qt.rgba(0,0,0, 0.2)
|
||||
|
||||
fullWidth: effect.fullWidth
|
||||
fullHeight: effect.fullHeight
|
||||
source: effect.sourceItem
|
||||
}
|
||||
|
||||
BoxShadow {
|
||||
offsetY: effect._shadow.angularValues[1].offset
|
||||
blurRadius: effect._shadow.angularValues[1].blur
|
||||
spreadRadius: effect._shadow.angularValues[1].spread
|
||||
strength: effect._shadow.strength
|
||||
color: Qt.rgba(0,0,0, 0.14)
|
||||
|
||||
fullWidth: effect.fullWidth
|
||||
fullHeight: effect.fullHeight
|
||||
source: effect.sourceItem
|
||||
}
|
||||
|
||||
BoxShadow {
|
||||
offsetY: effect._shadow.angularValues[2].offset
|
||||
blurRadius: effect._shadow.angularValues[2].blur
|
||||
spreadRadius: effect._shadow.angularValues[2].spread
|
||||
strength: effect._shadow.strength
|
||||
color: Qt.rgba(0,0,0, 0.12)
|
||||
|
||||
fullWidth: effect.fullWidth
|
||||
fullHeight: effect.fullHeight
|
||||
source: effect.sourceItem
|
||||
}
|
||||
|
||||
ShaderEffect {
|
||||
property alias source: effect.source
|
||||
|
||||
x: (parent.width - width)/2
|
||||
y: (parent.height - height)/2
|
||||
width: effect.sourceItem.width
|
||||
height: effect.sourceItem.height
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
// 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 QtQuick.Templates as T
|
||||
import QtQuick.Controls.Material
|
||||
import QtQuick.Controls.Material.impl
|
||||
|
||||
Rectangle {
|
||||
id: indicator
|
||||
implicitWidth: 20
|
||||
implicitHeight: 20
|
||||
radius: width / 2
|
||||
border.width: 2
|
||||
border.color: targetColor
|
||||
color: "transparent"
|
||||
|
||||
// Store the target color in a separate property, because there are two animations that depend on it.
|
||||
readonly property color targetColor: !control.enabled ? control.Material.hintTextColor
|
||||
: control.checked || control.down ? control.Material.accentColor : control.Material.secondaryTextColor
|
||||
|
||||
property T.AbstractButton control
|
||||
|
||||
Behavior on border.color {
|
||||
ColorAnimation {
|
||||
duration: 100
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
width: 10
|
||||
height: 10
|
||||
radius: width / 2
|
||||
color: indicator.targetColor
|
||||
scale: indicator.control.checked || indicator.control.down ? 1 : 0
|
||||
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
duration: 100
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
|
||||
Behavior on scale {
|
||||
NumberAnimation {
|
||||
duration: 100
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+208
@@ -0,0 +1,208 @@
|
||||
// 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
|
||||
|
||||
/*
|
||||
A cross-graphics API implementation of QtGraphicalEffects' RectangularGlow.
|
||||
*/
|
||||
Item {
|
||||
id: rootItem
|
||||
|
||||
/*
|
||||
This property defines how many pixels outside the item area are reached
|
||||
by the glow.
|
||||
|
||||
The value ranges from 0.0 (no glow) to inf (infinite glow). By default,
|
||||
the property is set to \c 0.0.
|
||||
|
||||
\table
|
||||
\header
|
||||
\li Output examples with different glowRadius values
|
||||
\li
|
||||
\li
|
||||
\row
|
||||
\li \image RectangularGlow_glowRadius1.png
|
||||
\li \image RectangularGlow_glowRadius2.png
|
||||
\li \image RectangularGlow_glowRadius3.png
|
||||
\row
|
||||
\li \b { glowRadius: 10 }
|
||||
\li \b { glowRadius: 20 }
|
||||
\li \b { glowRadius: 40 }
|
||||
\row
|
||||
\li \l spread: 0
|
||||
\li \l spread: 0
|
||||
\li \l spread: 0
|
||||
\row
|
||||
\li \l color: #ffffff
|
||||
\li \l color: #ffffff
|
||||
\li \l color: #ffffff
|
||||
\row
|
||||
\li \l cornerRadius: 25
|
||||
\li \l cornerRadius: 25
|
||||
\li \l cornerRadius: 25
|
||||
\endtable
|
||||
|
||||
*/
|
||||
property real glowRadius: 0.0
|
||||
|
||||
/*
|
||||
This property defines how large part of the glow color is strenghtened
|
||||
near the source edges.
|
||||
|
||||
The value ranges from 0.0 (no strenght increase) to 1.0 (maximum
|
||||
strenght increase). By default, the property is set to \c 0.0.
|
||||
|
||||
\table
|
||||
\header
|
||||
\li Output examples with different spread values
|
||||
\li
|
||||
\li
|
||||
\row
|
||||
\li \image RectangularGlow_spread1.png
|
||||
\li \image RectangularGlow_spread2.png
|
||||
\li \image RectangularGlow_spread3.png
|
||||
\row
|
||||
\li \b { spread: 0.0 }
|
||||
\li \b { spread: 0.5 }
|
||||
\li \b { spread: 1.0 }
|
||||
\row
|
||||
\li \l glowRadius: 20
|
||||
\li \l glowRadius: 20
|
||||
\li \l glowRadius: 20
|
||||
\row
|
||||
\li \l color: #ffffff
|
||||
\li \l color: #ffffff
|
||||
\li \l color: #ffffff
|
||||
\row
|
||||
\li \l cornerRadius: 25
|
||||
\li \l cornerRadius: 25
|
||||
\li \l cornerRadius: 25
|
||||
\endtable
|
||||
*/
|
||||
property real spread: 0.0
|
||||
|
||||
/*
|
||||
This property defines the RGBA color value which is used for the glow.
|
||||
|
||||
By default, the property is set to \c "white".
|
||||
|
||||
\table
|
||||
\header
|
||||
\li Output examples with different color values
|
||||
\li
|
||||
\li
|
||||
\row
|
||||
\li \image RectangularGlow_color1.png
|
||||
\li \image RectangularGlow_color2.png
|
||||
\li \image RectangularGlow_color3.png
|
||||
\row
|
||||
\li \b { color: #ffffff }
|
||||
\li \b { color: #55ff55 }
|
||||
\li \b { color: #5555ff }
|
||||
\row
|
||||
\li \l glowRadius: 20
|
||||
\li \l glowRadius: 20
|
||||
\li \l glowRadius: 20
|
||||
\row
|
||||
\li \l spread: 0
|
||||
\li \l spread: 0
|
||||
\li \l spread: 0
|
||||
\row
|
||||
\li \l cornerRadius: 25
|
||||
\li \l cornerRadius: 25
|
||||
\li \l cornerRadius: 25
|
||||
\endtable
|
||||
*/
|
||||
property color color: "white"
|
||||
|
||||
/*
|
||||
This property defines the corner radius that is used to draw a glow with
|
||||
rounded corners.
|
||||
|
||||
The value ranges from 0.0 to half of the effective width or height of
|
||||
the glow, whichever is smaller. This can be calculated with: \c{
|
||||
min(width, height) / 2.0 + glowRadius}
|
||||
|
||||
By default, the property is bound to glowRadius property. The glow
|
||||
behaves as if the rectangle was blurred when adjusting the glowRadius
|
||||
property.
|
||||
|
||||
\table
|
||||
\header
|
||||
\li Output examples with different cornerRadius values
|
||||
\li
|
||||
\li
|
||||
\row
|
||||
\li \image RectangularGlow_cornerRadius1.png
|
||||
\li \image RectangularGlow_cornerRadius2.png
|
||||
\li \image RectangularGlow_cornerRadius3.png
|
||||
\row
|
||||
\li \b { cornerRadius: 0 }
|
||||
\li \b { cornerRadius: 25 }
|
||||
\li \b { cornerRadius: 50 }
|
||||
\row
|
||||
\li \l glowRadius: 20
|
||||
\li \l glowRadius: 20
|
||||
\li \l glowRadius: 20
|
||||
\row
|
||||
\li \l spread: 0
|
||||
\li \l spread: 0
|
||||
\li \l spread: 0
|
||||
\row
|
||||
\li \l color: #ffffff
|
||||
\li \l color: #ffffff
|
||||
\li \l color: #ffffff
|
||||
\endtable
|
||||
*/
|
||||
property real cornerRadius: glowRadius
|
||||
|
||||
/*
|
||||
This property allows the effect output pixels to be cached in order to
|
||||
improve the rendering performance.
|
||||
|
||||
Every time the source or effect properties are changed, the pixels in
|
||||
the cache must be updated. Memory consumption is increased, because an
|
||||
extra buffer of memory is required for storing the effect output.
|
||||
|
||||
It is recommended to disable the cache when the source or the effect
|
||||
properties are animated.
|
||||
|
||||
By default, the property is set to \c false.
|
||||
*/
|
||||
property bool cached: false
|
||||
|
||||
ShaderEffectSource {
|
||||
id: cacheItem
|
||||
anchors.fill: shaderItem
|
||||
visible: rootItem.cached
|
||||
smooth: true
|
||||
sourceItem: shaderItem
|
||||
live: true
|
||||
hideSource: visible
|
||||
}
|
||||
|
||||
ShaderEffect {
|
||||
id: shaderItem
|
||||
|
||||
x: (parent.width - width) / 2.0
|
||||
y: (parent.height - height) / 2.0
|
||||
width: parent.width + rootItem.glowRadius * 2 + cornerRadius * 2
|
||||
height: parent.height + rootItem.glowRadius * 2 + cornerRadius * 2
|
||||
|
||||
function clampedCornerRadius() {
|
||||
var maxCornerRadius = Math.min(rootItem.width, rootItem.height) / 2 + rootItem.glowRadius;
|
||||
return Math.max(0, Math.min(rootItem.cornerRadius, maxCornerRadius))
|
||||
}
|
||||
|
||||
property color color: rootItem.color
|
||||
property real inverseSpread: 1.0 - rootItem.spread
|
||||
property real relativeSizeX: ((inverseSpread * inverseSpread) * rootItem.glowRadius + cornerRadius * 2.0) / width
|
||||
property real relativeSizeY: relativeSizeX * (width / height)
|
||||
property real spread: rootItem.spread / 2.0
|
||||
property real cornerRadius: clampedCornerRadius()
|
||||
|
||||
fragmentShader: "qrc:/qt-project.org/imports/QtQuick/Controls/Material/shaders/RectangularGlow.frag.qsb"
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
// Copyright (C) 2022 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.Controls.Material
|
||||
import QtQuick.Controls.Material.impl
|
||||
|
||||
ElevationEffect {
|
||||
required property int roundedScale
|
||||
|
||||
_shadows: roundedScale === Material.NotRounded ? _defaultShadows : roundedShadows()
|
||||
|
||||
function roundedShadows() {
|
||||
// Make a deep copy.
|
||||
let shadows = [..._defaultShadows]
|
||||
for (let i = 0, strength = 0.95; i < shadows.length; ++i) {
|
||||
// See comment on BoxShadow's strength property for why we do this.
|
||||
shadows[i].strength = strength
|
||||
// We don't want the strength to be too high for the controls with very slightly rounded
|
||||
// corners, as they are quite close to the non-rounded ones in terms of not needing adjustments.
|
||||
// This is still not great for the higher elevations for ExtraSmallScale, but it's as good
|
||||
// as I can get it.
|
||||
strength = Math.max(0.05, strength - (roundedScale > Material.ExtraSmallScale ? 0.1 : 0.3))
|
||||
|
||||
// The values at index 0 are already 0, and we don't want our Math.max(1, ...) code to affect them.
|
||||
if (i > 0) {
|
||||
// The blur values for e.g. buttons with rounded corners are too large, so we reduce them.
|
||||
for (let angularShadowIndex = 0; angularShadowIndex < shadows[i].angularValues.length; ++angularShadowIndex) {
|
||||
shadows[i].angularValues[angularShadowIndex].blur =
|
||||
Math.max(1, Math.floor(shadows[i].angularValues[angularShadowIndex].blur / 4))
|
||||
}
|
||||
}
|
||||
}
|
||||
return shadows
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
// Copyright (C) 2023 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 QtQuick.Controls.Material
|
||||
import QtQuick.Controls.Material.impl
|
||||
|
||||
Item {
|
||||
id: root
|
||||
implicitWidth: initialSize
|
||||
implicitHeight: initialSize
|
||||
|
||||
property real value: 0
|
||||
property bool handleHasFocus: false
|
||||
property bool handlePressed: false
|
||||
property bool handleHovered: false
|
||||
readonly property int initialSize: 13
|
||||
readonly property var control: parent
|
||||
|
||||
Rectangle {
|
||||
id: handleRect
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
radius: width / 2
|
||||
color: root.control
|
||||
? root.control.enabled ? root.control.Material.accentColor : root.control.Material.sliderDisabledColor
|
||||
: "transparent"
|
||||
}
|
||||
|
||||
Ripple {
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
width: 22; height: 22
|
||||
pressed: root.handlePressed
|
||||
active: root.handlePressed || root.handleHasFocus || (enabled && root.handleHovered)
|
||||
color: root.control ? root.control.Material.highlightedRippleColor : "transparent"
|
||||
}
|
||||
}
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
// 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 QtQuick.Templates as T
|
||||
import QtQuick.Controls.impl
|
||||
import QtQuick.Controls.Material
|
||||
import QtQuick.Controls.Material.impl
|
||||
|
||||
Rectangle {
|
||||
id: indicator
|
||||
width: control.Material.switchIndicatorWidth
|
||||
height: control.Material.switchIndicatorHeight
|
||||
radius: height / 2
|
||||
y: parent.height / 2 - height / 2
|
||||
color: control.enabled
|
||||
? (control.checked
|
||||
? control.Material.switchCheckedTrackColor : control.Material.switchUncheckedTrackColor)
|
||||
: (control.checked
|
||||
? control.Material.switchDisabledCheckedTrackColor
|
||||
: control.Material.switchDisabledUncheckedTrackColor)
|
||||
border.width: 2
|
||||
border.color: control.enabled
|
||||
? (control.checked ? control.Material.switchCheckedTrackColor : control.Material.switchUncheckedHandleColor)
|
||||
: (control.checked ? control.Material.switchDisabledCheckedTrackColor : control.Material.switchDisabledUncheckedTrackBorderColor)
|
||||
|
||||
property T.AbstractButton control
|
||||
property alias handle: handle
|
||||
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
duration: 200
|
||||
}
|
||||
}
|
||||
Behavior on border.color {
|
||||
ColorAnimation {
|
||||
duration: 200
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: handle
|
||||
x: Math.max(offset, Math.min(parent.width - offset - width,
|
||||
indicator.control.visualPosition * parent.width - (width / 2)))
|
||||
y: (parent.height - height) / 2
|
||||
// We use scale to allow us to enlarge the circle from the center,
|
||||
// as using width/height will cause it to jump due to the position x/y bindings.
|
||||
// However, a large enough scale on certain displays will show the triangles
|
||||
// that make up the circle, so instead we make sure that the circle is always
|
||||
// its largest size so that more triangles are used, and downscale instead.
|
||||
width: normalSize * largestScale
|
||||
height: normalSize * largestScale
|
||||
radius: width / 2
|
||||
color: indicator.control.enabled
|
||||
? (indicator.control.checked
|
||||
? indicator.control.Material.switchCheckedHandleColor
|
||||
: indicator.control.hovered
|
||||
? indicator.control.Material.switchUncheckedHoveredHandleColor : indicator.control.Material.switchUncheckedHandleColor)
|
||||
: (indicator.control.checked
|
||||
? indicator.control.Material.switchDisabledCheckedHandleColor
|
||||
: indicator.control.Material.switchDisabledUncheckedHandleColor)
|
||||
scale: indicator.control.down ? 1 : (indicator.control.checked ? checkedSize / largestSize : normalSize / largestSize)
|
||||
|
||||
readonly property int offset: 2
|
||||
readonly property real normalSize: !hasIcon ? indicator.control.Material.switchNormalHandleHeight : checkedSize
|
||||
readonly property real checkedSize: indicator.control.Material.switchCheckedHandleHeight
|
||||
readonly property real largestSize: indicator.control.Material.switchLargestHandleHeight
|
||||
readonly property real largestScale: largestSize / normalSize
|
||||
readonly property bool hasIcon: indicator.control.icon.name.length > 0
|
||||
|| indicator.control.icon.source.toString().length > 0
|
||||
|
||||
Behavior on x {
|
||||
enabled: !indicator.control.pressed
|
||||
SmoothedAnimation {
|
||||
duration: 300
|
||||
}
|
||||
}
|
||||
|
||||
Behavior on scale {
|
||||
NumberAnimation {
|
||||
duration: 100
|
||||
}
|
||||
}
|
||||
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
duration: 200
|
||||
}
|
||||
}
|
||||
|
||||
IconImage {
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
name: indicator.control.icon.name
|
||||
source: indicator.control.icon.source
|
||||
sourceSize: Qt.size(indicator.control.icon.width, indicator.control.icon.height)
|
||||
color: indicator.control.icon.color
|
||||
visible: handle.hasIcon
|
||||
}
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
// Copyright (C) 2025 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 QtQuick.Controls.impl
|
||||
import QtQuick.Controls.Material
|
||||
|
||||
Menu {
|
||||
id: menu
|
||||
popupType: Qt.platform.pluginName !== "wayland" ? Popup.Window : Popup.Item
|
||||
|
||||
required property Item editor
|
||||
|
||||
UndoAction {
|
||||
editor: menu.editor
|
||||
}
|
||||
RedoAction {
|
||||
editor: menu.editor
|
||||
}
|
||||
|
||||
MenuSeparator {}
|
||||
|
||||
CutAction {
|
||||
editor: menu.editor
|
||||
}
|
||||
CopyAction {
|
||||
editor: menu.editor
|
||||
}
|
||||
PasteAction {
|
||||
editor: menu.editor
|
||||
}
|
||||
DeleteAction {
|
||||
editor: menu.editor
|
||||
}
|
||||
|
||||
MenuSeparator {}
|
||||
|
||||
SelectAllAction {
|
||||
editor: menu.editor
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,408 @@
|
||||
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 qmltyperegistrar.
|
||||
|
||||
Module {
|
||||
Component {
|
||||
file: "private/qquickmaterialbusyindicator_p.h"
|
||||
lineNumber: 25
|
||||
name: "QQuickMaterialBusyIndicator"
|
||||
accessSemantics: "reference"
|
||||
defaultProperty: "data"
|
||||
parentProperty: "parent"
|
||||
prototype: "QQuickItem"
|
||||
exports: [
|
||||
"QtQuick.Controls.Material.impl/BusyIndicatorImpl 2.0",
|
||||
"QtQuick.Controls.Material.impl/BusyIndicatorImpl 2.1",
|
||||
"QtQuick.Controls.Material.impl/BusyIndicatorImpl 2.4",
|
||||
"QtQuick.Controls.Material.impl/BusyIndicatorImpl 2.7",
|
||||
"QtQuick.Controls.Material.impl/BusyIndicatorImpl 2.11",
|
||||
"QtQuick.Controls.Material.impl/BusyIndicatorImpl 6.0",
|
||||
"QtQuick.Controls.Material.impl/BusyIndicatorImpl 6.3",
|
||||
"QtQuick.Controls.Material.impl/BusyIndicatorImpl 6.7"
|
||||
]
|
||||
exportMetaObjectRevisions: [512, 513, 516, 519, 523, 1536, 1539, 1543]
|
||||
Property {
|
||||
name: "color"
|
||||
type: "QColor"
|
||||
read: "color"
|
||||
write: "setColor"
|
||||
index: 0
|
||||
lineNumber: 28
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "running"
|
||||
type: "bool"
|
||||
read: "isRunning"
|
||||
write: "setRunning"
|
||||
index: 1
|
||||
lineNumber: 29
|
||||
isFinal: true
|
||||
}
|
||||
}
|
||||
Component {
|
||||
file: "private/qquickmaterialplaceholdertext_p.h"
|
||||
lineNumber: 29
|
||||
name: "QQuickMaterialPlaceholderText"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QQuickPlaceholderText"
|
||||
exports: [
|
||||
"QtQuick.Controls.Material.impl/FloatingPlaceholderText 6.5",
|
||||
"QtQuick.Controls.Material.impl/FloatingPlaceholderText 6.7"
|
||||
]
|
||||
exportMetaObjectRevisions: [1541, 1543]
|
||||
Property {
|
||||
name: "filled"
|
||||
type: "bool"
|
||||
read: "isFilled"
|
||||
write: "setFilled"
|
||||
notify: "filledChanged"
|
||||
index: 0
|
||||
lineNumber: 32
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "controlHasActiveFocus"
|
||||
type: "bool"
|
||||
read: "controlHasActiveFocus"
|
||||
write: "setControlHasActiveFocus"
|
||||
notify: "controlHasActiveFocusChanged"
|
||||
index: 1
|
||||
lineNumber: 33
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "controlHasText"
|
||||
type: "bool"
|
||||
read: "controlHasText"
|
||||
write: "setControlHasText"
|
||||
notify: "controlHasTextChanged"
|
||||
index: 2
|
||||
lineNumber: 35
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "largestHeight"
|
||||
type: "int"
|
||||
read: "largestHeight"
|
||||
notify: "largestHeightChanged"
|
||||
index: 3
|
||||
lineNumber: 36
|
||||
isReadonly: true
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "verticalPadding"
|
||||
type: "double"
|
||||
read: "verticalPadding"
|
||||
write: "setVerticalPadding"
|
||||
notify: "verticalPaddingChanged"
|
||||
index: 4
|
||||
lineNumber: 37
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "controlImplicitBackgroundHeight"
|
||||
type: "double"
|
||||
read: "controlImplicitBackgroundHeight"
|
||||
write: "setControlImplicitBackgroundHeight"
|
||||
notify: "controlImplicitBackgroundHeightChanged"
|
||||
index: 5
|
||||
lineNumber: 38
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "controlHeight"
|
||||
type: "double"
|
||||
read: "controlHeight"
|
||||
write: "setControlHeight"
|
||||
index: 6
|
||||
lineNumber: 40
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "leftPadding"
|
||||
type: "int"
|
||||
write: "setLeftPadding"
|
||||
index: 7
|
||||
lineNumber: 41
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "floatingLeftPadding"
|
||||
type: "int"
|
||||
write: "setFloatingLeftPadding"
|
||||
index: 8
|
||||
lineNumber: 42
|
||||
isFinal: true
|
||||
}
|
||||
Signal { name: "filledChanged"; lineNumber: 72 }
|
||||
Signal { name: "largestHeightChanged"; lineNumber: 73 }
|
||||
Signal { name: "controlHasActiveFocusChanged"; lineNumber: 74 }
|
||||
Signal { name: "controlHasTextChanged"; lineNumber: 75 }
|
||||
Signal { name: "controlImplicitBackgroundHeightChanged"; lineNumber: 76 }
|
||||
Signal { name: "verticalPaddingChanged"; lineNumber: 77 }
|
||||
Method { name: "adjustTransformOrigin"; lineNumber: 80 }
|
||||
}
|
||||
Component {
|
||||
file: "private/qquickmaterialprogressbar_p.h"
|
||||
lineNumber: 25
|
||||
name: "QQuickMaterialProgressBar"
|
||||
accessSemantics: "reference"
|
||||
defaultProperty: "data"
|
||||
parentProperty: "parent"
|
||||
prototype: "QQuickItem"
|
||||
exports: [
|
||||
"QtQuick.Controls.Material.impl/ProgressBarImpl 2.0",
|
||||
"QtQuick.Controls.Material.impl/ProgressBarImpl 2.1",
|
||||
"QtQuick.Controls.Material.impl/ProgressBarImpl 2.4",
|
||||
"QtQuick.Controls.Material.impl/ProgressBarImpl 2.7",
|
||||
"QtQuick.Controls.Material.impl/ProgressBarImpl 2.11",
|
||||
"QtQuick.Controls.Material.impl/ProgressBarImpl 6.0",
|
||||
"QtQuick.Controls.Material.impl/ProgressBarImpl 6.3",
|
||||
"QtQuick.Controls.Material.impl/ProgressBarImpl 6.7"
|
||||
]
|
||||
exportMetaObjectRevisions: [512, 513, 516, 519, 523, 1536, 1539, 1543]
|
||||
Property {
|
||||
name: "color"
|
||||
type: "QColor"
|
||||
read: "color"
|
||||
write: "setColor"
|
||||
index: 0
|
||||
lineNumber: 28
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "progress"
|
||||
type: "double"
|
||||
read: "progress"
|
||||
write: "setProgress"
|
||||
index: 1
|
||||
lineNumber: 29
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "indeterminate"
|
||||
type: "bool"
|
||||
read: "isIndeterminate"
|
||||
write: "setIndeterminate"
|
||||
index: 2
|
||||
lineNumber: 30
|
||||
isFinal: true
|
||||
}
|
||||
}
|
||||
Component {
|
||||
file: "private/qquickmaterialripple_p.h"
|
||||
lineNumber: 25
|
||||
name: "QQuickMaterialRipple"
|
||||
accessSemantics: "reference"
|
||||
defaultProperty: "data"
|
||||
parentProperty: "parent"
|
||||
prototype: "QQuickItem"
|
||||
exports: [
|
||||
"QtQuick.Controls.Material.impl/Ripple 2.0",
|
||||
"QtQuick.Controls.Material.impl/Ripple 2.1",
|
||||
"QtQuick.Controls.Material.impl/Ripple 2.4",
|
||||
"QtQuick.Controls.Material.impl/Ripple 2.7",
|
||||
"QtQuick.Controls.Material.impl/Ripple 2.11",
|
||||
"QtQuick.Controls.Material.impl/Ripple 6.0",
|
||||
"QtQuick.Controls.Material.impl/Ripple 6.3",
|
||||
"QtQuick.Controls.Material.impl/Ripple 6.7"
|
||||
]
|
||||
exportMetaObjectRevisions: [512, 513, 516, 519, 523, 1536, 1539, 1543]
|
||||
Enum {
|
||||
name: "Trigger"
|
||||
lineNumber: 52
|
||||
values: ["Press", "Release"]
|
||||
}
|
||||
Property {
|
||||
name: "color"
|
||||
type: "QColor"
|
||||
read: "color"
|
||||
write: "setColor"
|
||||
index: 0
|
||||
lineNumber: 28
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "clipRadius"
|
||||
type: "double"
|
||||
read: "clipRadius"
|
||||
write: "setClipRadius"
|
||||
index: 1
|
||||
lineNumber: 29
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "pressed"
|
||||
type: "bool"
|
||||
read: "isPressed"
|
||||
write: "setPressed"
|
||||
index: 2
|
||||
lineNumber: 30
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "active"
|
||||
type: "bool"
|
||||
read: "isActive"
|
||||
write: "setActive"
|
||||
index: 3
|
||||
lineNumber: 31
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "anchor"
|
||||
type: "QQuickItem"
|
||||
isPointer: true
|
||||
read: "anchor"
|
||||
write: "setAnchor"
|
||||
index: 4
|
||||
lineNumber: 32
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "trigger"
|
||||
type: "Trigger"
|
||||
read: "trigger"
|
||||
write: "setTrigger"
|
||||
index: 5
|
||||
lineNumber: 33
|
||||
isFinal: true
|
||||
}
|
||||
}
|
||||
Component {
|
||||
file: "private/qquickmaterialtextcontainer_p.h"
|
||||
lineNumber: 27
|
||||
name: "QQuickMaterialTextContainer"
|
||||
accessSemantics: "reference"
|
||||
prototype: "QQuickPaintedItem"
|
||||
exports: [
|
||||
"QtQuick.Controls.Material.impl/MaterialTextContainer 6.5",
|
||||
"QtQuick.Controls.Material.impl/MaterialTextContainer 6.7"
|
||||
]
|
||||
exportMetaObjectRevisions: [1541, 1543]
|
||||
Enum {
|
||||
name: "PlaceHolderHAlignment"
|
||||
lineNumber: 48
|
||||
values: [
|
||||
"AlignLeft",
|
||||
"AlignRight",
|
||||
"AlignHCenter",
|
||||
"AlignJustify"
|
||||
]
|
||||
}
|
||||
Property {
|
||||
name: "filled"
|
||||
type: "bool"
|
||||
read: "isFilled"
|
||||
write: "setFilled"
|
||||
index: 0
|
||||
lineNumber: 30
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "controlHasActiveFocus"
|
||||
type: "bool"
|
||||
read: "controlHasActiveFocus"
|
||||
write: "setControlHasActiveFocus"
|
||||
notify: "controlHasActiveFocusChanged"
|
||||
index: 1
|
||||
lineNumber: 31
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "fillColor"
|
||||
type: "QColor"
|
||||
read: "fillColor"
|
||||
write: "setFillColor"
|
||||
index: 2
|
||||
lineNumber: 33
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "outlineColor"
|
||||
type: "QColor"
|
||||
read: "outlineColor"
|
||||
write: "setOutlineColor"
|
||||
index: 3
|
||||
lineNumber: 34
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "focusedOutlineColor"
|
||||
type: "QColor"
|
||||
read: "focusedOutlineColor"
|
||||
write: "setFocusedOutlineColor"
|
||||
index: 4
|
||||
lineNumber: 35
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "focusAnimationProgress"
|
||||
type: "double"
|
||||
read: "focusAnimationProgress"
|
||||
write: "setFocusAnimationProgress"
|
||||
index: 5
|
||||
lineNumber: 36
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "placeholderTextWidth"
|
||||
type: "double"
|
||||
read: "placeholderTextWidth"
|
||||
write: "setPlaceholderTextWidth"
|
||||
index: 6
|
||||
lineNumber: 37
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "placeholderTextHAlign"
|
||||
type: "PlaceHolderHAlignment"
|
||||
read: "placeholderTextHAlign"
|
||||
write: "setPlaceholderTextHAlign"
|
||||
index: 7
|
||||
lineNumber: 38
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "controlHasText"
|
||||
type: "bool"
|
||||
read: "controlHasText"
|
||||
write: "setControlHasText"
|
||||
notify: "controlHasTextChanged"
|
||||
index: 8
|
||||
lineNumber: 39
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "placeholderHasText"
|
||||
type: "bool"
|
||||
read: "placeholderHasText"
|
||||
write: "setPlaceholderHasText"
|
||||
notify: "placeholderHasTextChanged"
|
||||
index: 9
|
||||
lineNumber: 40
|
||||
isFinal: true
|
||||
}
|
||||
Property {
|
||||
name: "horizontalPadding"
|
||||
type: "int"
|
||||
read: "horizontalPadding"
|
||||
write: "setHorizontalPadding"
|
||||
notify: "horizontalPaddingChanged"
|
||||
index: 10
|
||||
lineNumber: 41
|
||||
isFinal: true
|
||||
}
|
||||
Signal { name: "animateChanged"; lineNumber: 92 }
|
||||
Signal { name: "controlHasActiveFocusChanged"; lineNumber: 93 }
|
||||
Signal { name: "controlHasTextChanged"; lineNumber: 94 }
|
||||
Signal { name: "placeholderHasTextChanged"; lineNumber: 95 }
|
||||
Signal { name: "horizontalPaddingChanged"; lineNumber: 96 }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
module QtQuick.Controls.Material.impl
|
||||
linktarget Qt6::qtquickcontrols2materialstyleimplplugin
|
||||
optional plugin qtquickcontrols2materialstyleimplplugin
|
||||
classname QtQuickControls2MaterialStyleImplPlugin
|
||||
typeinfo plugins.qmltypes
|
||||
depends QtQuick auto
|
||||
depends QtQuick.Controls.impl auto
|
||||
prefer :/qt-project.org/imports/QtQuick/Controls/Material/impl/
|
||||
BoxShadow 6.0 BoxShadow.qml
|
||||
BoxShadow 2.0 BoxShadow.qml
|
||||
CheckIndicator 6.0 CheckIndicator.qml
|
||||
CheckIndicator 2.0 CheckIndicator.qml
|
||||
CursorDelegate 6.0 CursorDelegate.qml
|
||||
CursorDelegate 2.0 CursorDelegate.qml
|
||||
ElevationEffect 6.0 ElevationEffect.qml
|
||||
ElevationEffect 2.0 ElevationEffect.qml
|
||||
RadioIndicator 6.0 RadioIndicator.qml
|
||||
RadioIndicator 2.0 RadioIndicator.qml
|
||||
RectangularGlow 6.0 RectangularGlow.qml
|
||||
RectangularGlow 2.0 RectangularGlow.qml
|
||||
RoundedElevationEffect 6.0 RoundedElevationEffect.qml
|
||||
RoundedElevationEffect 2.0 RoundedElevationEffect.qml
|
||||
SliderHandle 6.0 SliderHandle.qml
|
||||
SliderHandle 2.0 SliderHandle.qml
|
||||
SwitchIndicator 6.0 SwitchIndicator.qml
|
||||
SwitchIndicator 2.0 SwitchIndicator.qml
|
||||
TextEditingContextMenu 6.11 TextEditingContextMenu.qml
|
||||
|
||||
Reference in New Issue
Block a user