diff options
| author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-11-08 18:38:00 +0100 |
|---|---|---|
| committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-11-11 16:38:50 +0100 |
| commit | 435e739df302114517f1685a5146e4741454ad9d (patch) | |
| tree | 2d180b97a719b129cf266813a7074c3c4bd3a8a7 /sources/pyside6/doc/tutorials/qmlapp/Main | |
| parent | d500c4fcebdad5516da1ae7865d76437c752ac92 (diff) | |
doc: Avoid same name for directory and main qml file
Discovered while testing deployment on macOS,
nuitka fails when the directory and file (e.g. Main/Main.qml)
have the same name.
This might be able to be fixed by other arguments or even
upstream in Nuitka, this is a simple change that will encourage
people not to use the same name in the meantime
Pick-to: 6.8
Fixes: PYSIDE-2919
Task-number: PYSIDE-2910
Change-Id: I596d820e4a30996f9cf934a9f93e6436e51ad0d2
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials/qmlapp/Main')
| -rw-r--r-- | sources/pyside6/doc/tutorials/qmlapp/Main/Main.qml | 56 | ||||
| -rw-r--r-- | sources/pyside6/doc/tutorials/qmlapp/Main/logo.png | bin | 6208 -> 0 bytes | |||
| -rw-r--r-- | sources/pyside6/doc/tutorials/qmlapp/Main/qmldir | 2 |
3 files changed, 0 insertions, 58 deletions
diff --git a/sources/pyside6/doc/tutorials/qmlapp/Main/Main.qml b/sources/pyside6/doc/tutorials/qmlapp/Main/Main.qml deleted file mode 100644 index 7f9b1d777..000000000 --- a/sources/pyside6/doc/tutorials/qmlapp/Main/Main.qml +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (C) 2021 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -import QtQuick 2.12 -import QtQuick.Controls 2.12 - -Page { - width: 640 - height: 480 - required property var myModel - - header: Label { - color: "#15af15" - text: qsTr("Where do people use Qt?") - font.pointSize: 17 - font.bold: true - font.family: "Arial" - renderType: Text.NativeRendering - horizontalAlignment: Text.AlignHCenter - padding: 10 - } - Rectangle { - id: root - width: parent.width - height: parent.height - - Image { - id: image - fillMode: Image.PreserveAspectFit - anchors.centerIn: root - source: "./logo.png" - opacity: 0.5 - - } - - ListView { - id: view - anchors.fill: root - anchors.margins: 25 - model: myModel - delegate: Text { - anchors.leftMargin: 50 - font.pointSize: 15 - horizontalAlignment: Text.AlignHCenter - text: display - } - } - } - NumberAnimation { - id: anim - running: true - target: view - property: "contentY" - duration: 500 - } -} diff --git a/sources/pyside6/doc/tutorials/qmlapp/Main/logo.png b/sources/pyside6/doc/tutorials/qmlapp/Main/logo.png Binary files differdeleted file mode 100644 index 30c621c9c..000000000 --- a/sources/pyside6/doc/tutorials/qmlapp/Main/logo.png +++ /dev/null diff --git a/sources/pyside6/doc/tutorials/qmlapp/Main/qmldir b/sources/pyside6/doc/tutorials/qmlapp/Main/qmldir deleted file mode 100644 index 8ad738e16..000000000 --- a/sources/pyside6/doc/tutorials/qmlapp/Main/qmldir +++ /dev/null @@ -1,2 +0,0 @@ -module Main -Main 254.0 Main.qml |
