diff options
Diffstat (limited to 'tests/auto/qml/qmllint/data/MyStyle')
-rw-r--r-- | tests/auto/qml/qmllint/data/MyStyle/MyStyle.qmltypes | 112 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/data/MyStyle/ToolBar.qml | 12 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/data/MyStyle/qmldir | 4 |
3 files changed, 128 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/MyStyle/MyStyle.qmltypes b/tests/auto/qml/qmllint/data/MyStyle/MyStyle.qmltypes new file mode 100644 index 0000000000..92c1b0953e --- /dev/null +++ b/tests/auto/qml/qmllint/data/MyStyle/MyStyle.qmltypes @@ -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: "mystyle.h" + name: "MyStyle" + accessSemantics: "reference" + prototype: "QQuickAttachedPropertyPropagator" + exports: ["MyStyle/MyStyle 1.0", "MyStyle/MyStyle 254.0"] + isCreatable: false + exportMetaObjectRevisions: [256, 65024] + attachedType: "MyStyle" + Enum { + name: "Theme" + values: ["Light", "Dark"] + } + Property { + name: "theme" + type: "Theme" + read: "theme" + write: "setTheme" + reset: "resetTheme" + notify: "themeChanged" + index: 0 + isFinal: true + } + Property { + name: "windowColor" + type: "QColor" + read: "windowColor" + notify: "themeChanged" + index: 1 + isReadonly: true + isFinal: true + } + Property { + name: "windowTextColor" + type: "QColor" + read: "windowTextColor" + notify: "themeChanged" + index: 2 + isReadonly: true + isFinal: true + } + Property { + name: "buttonColor" + type: "QColor" + read: "buttonColor" + notify: "themeChanged" + index: 3 + isReadonly: true + isFinal: true + } + Property { + name: "buttonTextColor" + type: "QColor" + read: "buttonTextColor" + notify: "themeChanged" + index: 4 + isReadonly: true + isFinal: true + } + Property { + name: "toolBarColor" + type: "QColor" + read: "toolBarColor" + notify: "themeChanged" + index: 5 + isReadonly: true + isFinal: true + } + Property { + name: "popupColor" + type: "QColor" + read: "popupColor" + notify: "themeChanged" + index: 6 + isReadonly: true + isFinal: true + } + Property { + name: "popupBorderColor" + type: "QColor" + read: "popupBorderColor" + notify: "themeChanged" + index: 7 + isReadonly: true + isFinal: true + } + Property { + name: "backgroundDimColor" + type: "QColor" + read: "backgroundDimColor" + notify: "themeChanged" + index: 8 + isReadonly: true + isFinal: true + } + Signal { name: "themeChanged" } + } + Component { + file: "qquickattachedpropertypropagator.h" + name: "QQuickAttachedPropertyPropagator" + accessSemantics: "reference" + prototype: "QObject" + } +} diff --git a/tests/auto/qml/qmllint/data/MyStyle/ToolBar.qml b/tests/auto/qml/qmllint/data/MyStyle/ToolBar.qml new file mode 100644 index 0000000000..5920797d9b --- /dev/null +++ b/tests/auto/qml/qmllint/data/MyStyle/ToolBar.qml @@ -0,0 +1,12 @@ +import QtQuick +import QtQuick.Templates as T +import MyStyle + +T.ToolBar { + id: control + + property color c: MyStyle.toolBarColor + background: Rectangle { + color: MyStyle.toolBarColor + } +} diff --git a/tests/auto/qml/qmllint/data/MyStyle/qmldir b/tests/auto/qml/qmllint/data/MyStyle/qmldir new file mode 100644 index 0000000000..8cc4246f7c --- /dev/null +++ b/tests/auto/qml/qmllint/data/MyStyle/qmldir @@ -0,0 +1,4 @@ +module MyStyle +typeinfo MyStyle.qmltypes +ToolBar 254.0 ToolBar.qml +import QtQuick.Controls.Material |