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,22 @@
// Copyright (C) 2024 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
Item {
id: indicator
implicitWidth: 14
implicitHeight: 10
property Item control
ColorImage {
y: (parent.height - height) / 2
color: control.palette.text
source: "qrc:/qt-project.org/imports/QtQuick/Controls/Windows/images/checkmark.png"
visible: indicator.control.checkState === Qt.Checked
|| (indicator.control.checked && indicator.control.checkState === undefined)
}
}
@@ -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: 16
icon.height: 16
}
@@ -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: 16
icon.height: 16
}
@@ -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: 16
icon.height: 16
}
@@ -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: 16
icon.height: 16
}
@@ -0,0 +1,8 @@
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 {}
@@ -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: 16
icon.height: 16
}
@@ -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: 16
icon.height: 16
}
@@ -0,0 +1,60 @@
// 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.Templates as T
Rectangle {
id: root
x: control.text ? (control.mirrored
? control.width - width - control.rightPadding : control.leftPadding)
: control.leftPadding + (control.availableWidth - width) / 2
y: control.topPadding + (control.availableHeight - height) / 2
implicitWidth: 40
implicitHeight: 16
radius: 3
color: Qt.darker(control.palette.button, control.down ? 1.2 : 1.1)
border.color: Qt.darker(control.palette.window, 1.4)
readonly property bool __ignoreNotCustomizable: true
readonly property real __focusFrameRadius: 2
readonly property T.AbstractButton control: parent as T.AbstractButton
// Checked indicator.
Rectangle {
x: root.control.mirrored ? parent.children[1].x : 0
width: root.control.mirrored
? parent.width - parent.children[1].x : parent.children[1].x + parent.children[1].width
height: parent.height
radius: 3
color: Qt.darker(root.control.palette.highlight, root.control.down ? 1.1 : 1)
border.color: Qt.darker(root.control.palette.highlight, 1.35)
border.width: root.control.enabled ? 1 : 0
opacity: root.control.checked ? 1 : 0
Behavior on opacity {
enabled: !root.control.down
NumberAnimation { duration: 80 }
}
}
// Handle.
Rectangle {
x: Math.max(0, Math.min(parent.width - width,
root.control.visualPosition * parent.width - (width / 2)))
y: (parent.height - height) / 2
width: 20
height: 16
radius: 3
color: Qt.lighter(root.control.palette.button, root.control.down
? 1 : (root.control.hovered ? 1.07 : 1.045))
border.width: 1
border.color: Qt.darker(root.control.palette.window, 1.4)
Behavior on x {
enabled: !root.control.down
SmoothedAnimation { velocity: 200 }
}
}
}
@@ -0,0 +1,41 @@
// 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.Windows
import QtQuick.Controls.Windows.impl as WindowsImpl
Menu {
id: menu
popupType: Popup.Window
required property var editor
WindowsImpl.UndoAction {
editor: menu.editor
}
WindowsImpl.RedoAction {
editor: menu.editor
}
MenuSeparator {}
WindowsImpl.CutAction {
editor: menu.editor
}
WindowsImpl.CopyAction {
editor: menu.editor
}
WindowsImpl.PasteAction {
editor: menu.editor
}
WindowsImpl.DeleteAction {
editor: menu.editor
}
MenuSeparator {}
WindowsImpl.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: 16
icon.height: 16
}
@@ -0,0 +1,20 @@
module QtQuick.Controls.Windows.impl
linktarget Qt6::qtquickcontrols2windowsstyleimplplugin
optional plugin qtquickcontrols2windowsstyleimplplugin
classname QtQuickControls2WindowsStyleImplPlugin
typeinfo QuickControls2WindowsStyleImpl.qmltypes
depends QtQuick auto
prefer :/qt-project.org/imports/QtQuick/Controls/Windows/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
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