Initial commit

This commit is contained in:
2026-04-29 07:19:21 +03:00
commit 9a8cdfa08a
5964 changed files with 1194660 additions and 0 deletions
@@ -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.Templates as T
import QtQuick.Controls.impl
import QtQuick.Controls.Universal
Rectangle {
id: indicator
implicitWidth: 20
implicitHeight: 20
color: !control.enabled ? "transparent" :
control.down && !partiallyChecked ? control.Universal.baseMediumColor :
control.checkState === Qt.Checked ? control.Universal.accent : "transparent"
border.color: !control.enabled ? control.Universal.baseLowColor :
control.down ? control.Universal.baseMediumColor :
control.checked ? control.Universal.accent : control.Universal.baseMediumHighColor
border.width: 2 // CheckBoxBorderThemeThickness
property Item control
readonly property bool partiallyChecked: control.checkState === Qt.PartiallyChecked
ColorImage {
x: (parent.width - width) / 2
y: (parent.height - height) / 2
visible: indicator.control.checkState === Qt.Checked
color: !indicator.control.enabled ? indicator.control.Universal.baseLowColor : indicator.control.Universal.chromeWhiteColor
source: "qrc:/qt-project.org/imports/QtQuick/Controls/Universal/images/checkmark.png"
}
Rectangle {
x: (parent.width - width) / 2
y: (parent.height - height) / 2
width: indicator.partiallyChecked ? parent.width / 2 : parent.width
height: indicator.partiallyChecked ? parent.height / 2 : parent.height
visible: !indicator.control.pressed && enabled && indicator.control.hovered || indicator.partiallyChecked
color: !indicator.partiallyChecked ? "transparent" :
!indicator.control.enabled ? indicator.control.Universal.baseLowColor :
indicator.control.down ? indicator.control.Universal.baseMediumColor :
indicator.control.hovered ? indicator.control.Universal.baseHighColor : indicator.control.Universal.baseMediumHighColor
border.width: indicator.partiallyChecked ? 0 : 2 // CheckBoxBorderThemeThickness
border.color: indicator.control.Universal.baseMediumLowColor
}
}
@@ -0,0 +1,10 @@
// 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.Controls.impl
CopyAction {
icon.width: 20
icon.height: 20
}
@@ -0,0 +1,10 @@
// 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.Controls.impl
CutAction {
icon.width: 20
icon.height: 20
}
@@ -0,0 +1,10 @@
// 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.Controls.impl
DeleteAction {
icon.width: 20
icon.height: 20
}
@@ -0,0 +1,10 @@
// 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.Controls.impl
PasteAction {
icon.width: 20
icon.height: 20
}
@@ -0,0 +1,48 @@
// 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.Universal
Rectangle {
id: indicator
implicitWidth: 20
implicitHeight: 20
radius: width / 2
color: "transparent"
border.width: 2 // RadioButtonBorderThemeThickness
border.color: control.checked ? "transparent" :
!control.enabled ? control.Universal.baseLowColor :
control.down ? control.Universal.baseMediumColor :
control.hovered ? control.Universal.baseHighColor : control.Universal.baseMediumHighColor
property var control
Rectangle {
id: checkOuterEllipse
width: parent.width
height: parent.height
radius: width / 2
opacity: indicator.control.checked ? 1 : 0
color: "transparent"
border.width: 2 // RadioButtonBorderThemeThickness
border.color: !indicator.control.enabled ? indicator.control.Universal.baseLowColor :
indicator.control.down ? indicator.control.Universal.baseMediumColor : indicator.control.Universal.accent
}
Rectangle {
id: checkGlyph
x: (parent.width - width) / 2
y: (parent.height - height) / 2
width: parent.width / 2
height: parent.height / 2
radius: width / 2
opacity: indicator.control.checked ? 1 : 0
color: !indicator.control.enabled ? indicator.control.Universal.baseLowColor :
indicator.control.down ? indicator.control.Universal.baseMediumColor :
indicator.control.hovered ? indicator.control.Universal.baseHighColor : indicator.control.Universal.baseMediumHighColor
}
}
@@ -0,0 +1,9 @@
// 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
import QtQuick.Controls.impl
RedoAction {
icon.width: 20
icon.height: 20
}
@@ -0,0 +1,10 @@
// 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.Controls.impl
SelectAllAction {
icon.width: 20
icon.height: 20
}
@@ -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.Templates as T
import QtQuick.Controls.Universal
Item {
id: indicator
implicitWidth: 44
implicitHeight: 20
property T.AbstractButton control
Rectangle {
width: parent.width
height: parent.height
radius: 10
color: !indicator.control.enabled ? "transparent" :
indicator.control.pressed ? indicator.control.Universal.baseMediumColor :
indicator.control.checked ? indicator.control.Universal.accent : "transparent"
border.color: !indicator.control.enabled ? indicator.control.Universal.baseLowColor :
indicator.control.checked && !indicator.control.pressed ? indicator.control.Universal.accent :
indicator.control.hovered && !indicator.control.checked && !indicator.control.pressed ? indicator.control.Universal.baseHighColor : indicator.control.Universal.baseMediumColor
opacity: enabled && indicator.control.hovered && indicator.control.checked && !indicator.control.pressed ? (indicator.control.Universal.theme === Universal.Light ? 0.7 : 0.9) : 1.0
border.width: 2
}
Rectangle {
width: 10
height: 10
radius: 5
color: !indicator.control.enabled ? indicator.control.Universal.baseLowColor :
indicator.control.pressed || indicator.control.checked ? indicator.control.Universal.chromeWhiteColor :
indicator.control.hovered && !indicator.control.checked ? indicator.control.Universal.baseHighColor : indicator.control.Universal.baseMediumHighColor
x: Math.max(5, Math.min(parent.width - width - 5,
indicator.control.visualPosition * parent.width - (width / 2)))
y: (parent.height - height) / 2
Behavior on x {
enabled: !indicator.control.pressed
SmoothedAnimation { velocity: 200 }
}
}
}
@@ -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.Universal
import QtQuick.Controls.Universal.impl as UniversalImpl
Menu {
id: menu
popupType: Qt.platform.pluginName !== "wayland" ? Popup.Window : Popup.Item
required property Item editor
UniversalImpl.UndoAction {
editor: menu.editor
}
UniversalImpl.RedoAction {
editor: menu.editor
}
MenuSeparator {}
UniversalImpl.CutAction {
editor: menu.editor
}
UniversalImpl.CopyAction {
editor: menu.editor
}
UniversalImpl.PasteAction {
editor: menu.editor
}
UniversalImpl.DeleteAction {
editor: menu.editor
}
MenuSeparator {}
UniversalImpl.SelectAllAction {
editor: menu.editor
}
}
@@ -0,0 +1,9 @@
// 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
import QtQuick.Controls.impl
UndoAction {
icon.width: 20
icon.height: 20
}
@@ -0,0 +1,112 @@
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/qquickuniversalbusyindicator_p.h"
lineNumber: 25
name: "QQuickUniversalBusyIndicator"
accessSemantics: "reference"
defaultProperty: "data"
parentProperty: "parent"
prototype: "QQuickItem"
exports: [
"QtQuick.Controls.Universal.impl/BusyIndicatorImpl 2.0",
"QtQuick.Controls.Universal.impl/BusyIndicatorImpl 2.1",
"QtQuick.Controls.Universal.impl/BusyIndicatorImpl 2.4",
"QtQuick.Controls.Universal.impl/BusyIndicatorImpl 2.7",
"QtQuick.Controls.Universal.impl/BusyIndicatorImpl 2.11",
"QtQuick.Controls.Universal.impl/BusyIndicatorImpl 6.0",
"QtQuick.Controls.Universal.impl/BusyIndicatorImpl 6.3",
"QtQuick.Controls.Universal.impl/BusyIndicatorImpl 6.7"
]
exportMetaObjectRevisions: [512, 513, 516, 519, 523, 1536, 1539, 1543]
Property {
name: "count"
type: "int"
read: "count"
write: "setCount"
index: 0
lineNumber: 28
isFinal: true
}
Property {
name: "color"
type: "QColor"
read: "color"
write: "setColor"
index: 1
lineNumber: 29
isFinal: true
}
}
Component {
file: "private/qquickuniversalfocusrectangle_p.h"
lineNumber: 24
name: "QQuickUniversalFocusRectangle"
accessSemantics: "reference"
prototype: "QQuickPaintedItem"
exports: [
"QtQuick.Controls.Universal.impl/FocusRectangle 2.0",
"QtQuick.Controls.Universal.impl/FocusRectangle 2.1",
"QtQuick.Controls.Universal.impl/FocusRectangle 2.4",
"QtQuick.Controls.Universal.impl/FocusRectangle 2.7",
"QtQuick.Controls.Universal.impl/FocusRectangle 2.11",
"QtQuick.Controls.Universal.impl/FocusRectangle 6.0",
"QtQuick.Controls.Universal.impl/FocusRectangle 6.3",
"QtQuick.Controls.Universal.impl/FocusRectangle 6.7"
]
exportMetaObjectRevisions: [512, 513, 516, 519, 523, 1536, 1539, 1543]
}
Component {
file: "private/qquickuniversalprogressbar_p.h"
lineNumber: 25
name: "QQuickUniversalProgressBar"
accessSemantics: "reference"
defaultProperty: "data"
parentProperty: "parent"
prototype: "QQuickItem"
exports: [
"QtQuick.Controls.Universal.impl/ProgressBarImpl 2.0",
"QtQuick.Controls.Universal.impl/ProgressBarImpl 2.1",
"QtQuick.Controls.Universal.impl/ProgressBarImpl 2.4",
"QtQuick.Controls.Universal.impl/ProgressBarImpl 2.7",
"QtQuick.Controls.Universal.impl/ProgressBarImpl 2.11",
"QtQuick.Controls.Universal.impl/ProgressBarImpl 6.0",
"QtQuick.Controls.Universal.impl/ProgressBarImpl 6.3",
"QtQuick.Controls.Universal.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
}
}
}
@@ -0,0 +1,22 @@
module QtQuick.Controls.Universal.impl
linktarget Qt6::qtquickcontrols2universalstyleimplplugin
optional plugin qtquickcontrols2universalstyleimplplugin
classname QtQuickControls2UniversalStyleImplPlugin
typeinfo plugins.qmltypes
depends QtQuick auto
prefer :/qt-project.org/imports/QtQuick/Controls/Universal/impl/
CheckIndicator 6.0 CheckIndicator.qml
CheckIndicator 2.0 CheckIndicator.qml
CopyAction 6.11 CopyAction.qml
CutAction 6.11 CutAction.qml
DeleteAction 6.11 DeleteAction.qml
PasteAction 6.11 PasteAction.qml
RadioIndicator 6.0 RadioIndicator.qml
RadioIndicator 2.0 RadioIndicator.qml
RedoAction 6.11 RedoAction.qml
SelectAllAction 6.11 SelectAllAction.qml
SwitchIndicator 6.0 SwitchIndicator.qml
SwitchIndicator 2.0 SwitchIndicator.qml
TextEditingContextMenu 6.11 TextEditingContextMenu.qml
UndoAction 6.11 UndoAction.qml