Initial commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// Copyright (C) 2020 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' OpacityMask.
|
||||
*/
|
||||
Item {
|
||||
id: rootItem
|
||||
|
||||
property variant source
|
||||
property variant maskSource
|
||||
property bool cached: false
|
||||
|
||||
ShaderEffectSource {
|
||||
id: cacheItem
|
||||
anchors.fill: parent
|
||||
visible: rootItem.cached
|
||||
smooth: true
|
||||
sourceItem: shaderItem
|
||||
live: true
|
||||
hideSource: visible
|
||||
}
|
||||
|
||||
ShaderEffect {
|
||||
id: shaderItem
|
||||
property variant source: rootItem.source
|
||||
property variant maskSource: rootItem.maskSource
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
fragmentShader: "qrc:/qt-project.org/imports/QtQuick/Controls/Imagine/impl/shaders/OpacityMask.frag.qsb"
|
||||
}
|
||||
}
|
||||
+8
@@ -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 {}
|
||||
+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.Imagine
|
||||
|
||||
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,11 @@
|
||||
module QtQuick.Controls.Imagine.impl
|
||||
linktarget Qt6::qtquickcontrols2imaginestyleimplplugin
|
||||
optional plugin qtquickcontrols2imaginestyleimplplugin
|
||||
classname QtQuickControls2ImagineStyleImplPlugin
|
||||
typeinfo QuickControls2ImagineStyleImpl.qmltypes
|
||||
import QtQuick.Controls.impl auto
|
||||
prefer :/qt-project.org/imports/QtQuick/Controls/Imagine/impl/
|
||||
OpacityMask 6.0 OpacityMask.qml
|
||||
TextEditingContextMenu 6.11 TextEditingContextMenu.qml
|
||||
depends QtQuick
|
||||
|
||||
Reference in New Issue
Block a user