Inital commit of the Komplex Hub
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2021 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of Qt Quick Ultralite compatibility.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:GPL$
|
||||
** 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 General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3 or (at your option) 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.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-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.15
|
||||
|
||||
//! [Screen compatibility]
|
||||
Rectangle {
|
||||
id: wnd
|
||||
property string outputDevice: "device"
|
||||
property alias backgroundColor: wnd.color
|
||||
|
||||
property real defaultApplicationWidth: 0
|
||||
property real defaultApplicationHeight: 0
|
||||
|
||||
visible: true
|
||||
}
|
||||
//! [Screen compatibility]
|
||||
@@ -0,0 +1 @@
|
||||
prefer :/qt-project.org/imports/QtQuickUltralite/Layers/
|
||||
@@ -0,0 +1,35 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2021 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of Qt Quick Ultralite compatibility.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:GPL$
|
||||
** 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 General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3 or (at your option) 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.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-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.15
|
||||
|
||||
//! [ApplicationScreens compatibility]
|
||||
Item {
|
||||
}
|
||||
//! [ApplicationScreens compatibility]
|
||||
@@ -0,0 +1,49 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2021 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of Qt Quick Ultralite compatibility.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:GPL$
|
||||
** 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 General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3 or (at your option) 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.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-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.15
|
||||
|
||||
//! [ImageLayer compatibility]
|
||||
Item {
|
||||
enum RenderingHints {
|
||||
OptimizeForSpeed,
|
||||
OptimizeForSize,
|
||||
StaticContents
|
||||
}
|
||||
|
||||
property int platformId: 0
|
||||
property int renderingHints: ImageLayer.RenderingHints.OptimizeForSpeed
|
||||
property alias source: internalImage.source
|
||||
|
||||
Image {
|
||||
id: internalImage
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
||||
//! [ImageLayer compatibility]
|
||||
@@ -0,0 +1,49 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2021 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of Qt Quick Ultralite compatibility.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:GPL$
|
||||
** 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 General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3 or (at your option) 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.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-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.15
|
||||
|
||||
//! [ItemLayer compatibility]
|
||||
Item {
|
||||
enum ColorDepth {
|
||||
Bpp16, Bpp16Alpha, Bpp24, Bpp32, Bpp32Alpha
|
||||
}
|
||||
|
||||
enum RenderingHints {
|
||||
OptimizeForSpeed,
|
||||
OptimizeForSize,
|
||||
StaticContents
|
||||
}
|
||||
|
||||
property int depth: ColorDepth.Bpp32
|
||||
property int refreshInterval: 1
|
||||
property int platformId: 0
|
||||
property int renderingHints: RenderingHints.OptimizeForSpeed
|
||||
}
|
||||
//! [ItemLayer compatibility]
|
||||
@@ -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,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file alias="/qt-project.org/imports/QtQuickUltralite/Layers">/home/parametheus/Projects/QtDesigner/KomplexHub/build/qml/QtQuickUltralite/Layers</file>
|
||||
|
||||
</qresource>
|
||||
</RCC>
|
||||
@@ -0,0 +1,82 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2021 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of Qt Quick Ultralite compatibility.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:GPL$
|
||||
** 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 General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3 or (at your option) 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.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-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Window 2.2
|
||||
|
||||
//! [Screen compatibility]
|
||||
Item {
|
||||
id: root
|
||||
|
||||
property string outputDevice: "device"
|
||||
property alias backgroundColor: wnd.color
|
||||
|
||||
property real defaultApplicationWidth: 0
|
||||
property real defaultApplicationHeight: 0
|
||||
|
||||
onChildrenChanged: {
|
||||
if (wnd.isAvailable)
|
||||
wnd.reparenting()
|
||||
}
|
||||
|
||||
Window {
|
||||
id: wnd
|
||||
visible: true
|
||||
|
||||
width: root.width
|
||||
height: root.height
|
||||
|
||||
property bool reparentingBlock: false
|
||||
property bool isAvailable: false
|
||||
|
||||
Component.onCompleted: {
|
||||
reparenting()
|
||||
isAvailable = true
|
||||
}
|
||||
|
||||
function reparenting() {
|
||||
if (reparentingBlock)
|
||||
return;
|
||||
|
||||
reparentingBlock = true;
|
||||
|
||||
var result = [];
|
||||
var rootChildren = root.children;
|
||||
for (var i = 0; i < rootChildren.length; i++) {
|
||||
if (rootChildren[i] !== wnd) {
|
||||
result.push(rootChildren[i]);
|
||||
}
|
||||
}
|
||||
wnd.data = result;
|
||||
|
||||
reparentingBlock = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
//! [Screen compatibility]
|
||||
@@ -0,0 +1,41 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2021 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of Qt Quick Ultralite compatibility.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:GPL$
|
||||
** 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 General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3 or (at your option) 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.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-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.15
|
||||
|
||||
//! [SpriteLayer compatibility]
|
||||
Item {
|
||||
enum ColorDepth {
|
||||
Bpp8, Bpp16, Bpp16Alpha, Bpp24, Bpp32, Bpp32Alpha
|
||||
}
|
||||
|
||||
property int depth: ColorDepth.Bpp32
|
||||
property int platformId: 0
|
||||
}
|
||||
//! [SpriteLayer compatibility]
|
||||
Binary file not shown.
@@ -0,0 +1,26 @@
|
||||
module QtQuickUltralite.Layers
|
||||
linktarget QuickUltraLiteStudioLayersplugin
|
||||
optional plugin QuickUltraLiteStudioLayersplugin
|
||||
classname QtQuickUltralite_LayersPlugin
|
||||
designersupported
|
||||
typeinfo QuickUltraLiteStudioLayers.qmltypes
|
||||
prefer :/qt-project.org/imports/QtQuickUltralite/Layers/
|
||||
ApplicationScreens 254.0 ApplicationScreens.qml
|
||||
ApplicationScreens 1.0 ApplicationScreens.qml
|
||||
ApplicationScreens 2.0 ApplicationScreens.qml
|
||||
ImageLayer 254.0 ImageLayer.qml
|
||||
ImageLayer 1.0 ImageLayer.qml
|
||||
ImageLayer 2.0 ImageLayer.qml
|
||||
ItemLayer 254.0 ItemLayer.qml
|
||||
ItemLayer 1.0 ItemLayer.qml
|
||||
ItemLayer 2.0 ItemLayer.qml
|
||||
Screen 254.0 Screen.qml
|
||||
Screen 1.0 Screen.qml
|
||||
Screen 2.0 Screen.qml
|
||||
SpriteLayer 254.0 SpriteLayer.qml
|
||||
SpriteLayer 1.0 SpriteLayer.qml
|
||||
SpriteLayer 2.0 SpriteLayer.qml
|
||||
Screen 254.0 +DesignMode/Screen.qml
|
||||
Screen 1.0 +DesignMode/Screen.qml
|
||||
Screen 2.0 +DesignMode/Screen.qml
|
||||
|
||||
Reference in New Issue
Block a user