1
0
mirror of https://github.com/thp/pyotherside.git synced 2025-01-17 23:22:53 +08:00

Add qmltypes generated via qmlplugindump (Fixes #57)

This commit is contained in:
Thomas Perl 2016-01-03 11:34:08 +01:00
parent 8a0352841c
commit dfa2cd0ab0
4 changed files with 161 additions and 1 deletions

9
README
View File

@ -24,6 +24,15 @@ To build against a specific Python version, use:
make install
To manually update the qmltypes file on x64 Linux (TODO: make this automated):
qmake
make
make INSTALL_ROOT=$(pwd)/tmp/
qmlplugindump io.thp.pyotherside 1.0 tmp/usr/lib/x86_64-linux-gnu/qt5/qml \
>src/pyotherside.qmltypes
To run the included unit tests after building, use:
./tests/tests

150
src/pyotherside.qmltypes Normal file
View File

@ -0,0 +1,150 @@
import QtQuick.tooling 1.1
// 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:
// 'qmlplugindump io.thp.pyotherside 1.0 tmp/usr/lib/x86_64-linux-gnu/qt5/qml'
Module {
Component {
name: "PyFbo"
defaultProperty: "data"
prototype: "QQuickFramebufferObject"
exports: ["PyFBO 1.5"]
exportMetaObjectRevisions: [0]
Property { name: "renderer"; type: "QVariant" }
}
Component {
name: "PyGLArea"
defaultProperty: "data"
prototype: "QQuickItem"
exports: ["PyGLArea 1.5"]
exportMetaObjectRevisions: [0]
Property { name: "renderer"; type: "QVariant" }
Property { name: "before"; type: "bool" }
Method { name: "sync" }
Method { name: "update" }
}
Component {
name: "QPython"
prototype: "QObject"
Signal {
name: "received"
Parameter { name: "data"; type: "QVariant" }
}
Signal {
name: "error"
Parameter { name: "traceback"; type: "string" }
}
Signal {
name: "process"
Parameter { name: "func"; type: "QVariant" }
Parameter { name: "args"; type: "QVariant" }
Parameter { name: "callback"; type: "QJSValue"; isPointer: true }
}
Signal {
name: "import"
Parameter { name: "name"; type: "string" }
Parameter { name: "callback"; type: "QJSValue"; isPointer: true }
}
Method {
name: "addImportPath"
Parameter { name: "path"; type: "string" }
}
Method {
name: "setHandler"
Parameter { name: "event"; type: "string" }
Parameter { name: "callback"; type: "QJSValue" }
}
Method {
name: "evaluate"
type: "QVariant"
Parameter { name: "expr"; type: "string" }
}
Method {
name: "importModule"
Parameter { name: "name"; type: "string" }
Parameter { name: "callback"; type: "QJSValue" }
}
Method {
name: "importModule_sync"
type: "bool"
Parameter { name: "name"; type: "string" }
}
Method {
name: "call"
Parameter { name: "func"; type: "QVariant" }
Parameter { name: "args"; type: "QVariant" }
Parameter { name: "callback"; type: "QJSValue" }
}
Method {
name: "call"
Parameter { name: "func"; type: "QVariant" }
Parameter { name: "args"; type: "QVariant" }
}
Method {
name: "call"
Parameter { name: "func"; type: "QVariant" }
}
Method {
name: "call_sync"
type: "QVariant"
Parameter { name: "func"; type: "QVariant" }
Parameter { name: "args"; type: "QVariant" }
}
Method {
name: "call_sync"
type: "QVariant"
Parameter { name: "func"; type: "QVariant" }
}
Method {
name: "getattr"
type: "QVariant"
Parameter { name: "obj"; type: "QVariant" }
Parameter { name: "attr"; type: "string" }
}
Method { name: "pluginVersion"; type: "string" }
Method { name: "pythonVersion"; type: "string" }
}
Component {
name: "QPython10"
prototype: "QPython"
exports: ["Python 1.0"]
exportMetaObjectRevisions: [0]
}
Component {
name: "QPython12"
prototype: "QPython"
exports: ["Python 1.2"]
exportMetaObjectRevisions: [0]
}
Component {
name: "QPython13"
prototype: "QPython"
exports: ["Python 1.3"]
exportMetaObjectRevisions: [0]
}
Component {
name: "QPython14"
prototype: "QPython"
exports: ["Python 1.4"]
exportMetaObjectRevisions: [0]
}
Component {
name: "QPython15"
prototype: "QPython"
exports: ["Python 1.5"]
exportMetaObjectRevisions: [0]
}
Component {
name: "QQuickFramebufferObject"
defaultProperty: "data"
prototype: "QQuickItem"
Property { name: "textureFollowsItemSize"; type: "bool" }
Signal {
name: "textureFollowsItemSizeChanged"
Parameter { type: "bool" }
}
}
}

View File

@ -1,2 +1,3 @@
module io.thp.pyotherside
plugin pyothersideplugin
typeinfo pyotherside.qmltypes

View File

@ -13,7 +13,7 @@ QT += qml quick svg
target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
INSTALLS += target
qmldir.files += $$_PRO_FILE_PWD_/qmldir
qmldir.files += $$_PRO_FILE_PWD_/qmldir $$_PRO_FILE_PWD_/pyotherside.qmltypes
qmldir.path += $$target.path
INSTALLS += qmldir