mirror of
https://github.com/thp/pyotherside.git
synced 2025-02-05 08:08:23 +08:00
Merge pull request #58 from thp/qmltypes
Add qmltypes generated via qmlplugindump (Fixes #57)
This commit is contained in:
commit
4d3b4528b0
9
README
9
README
@ -24,6 +24,15 @@ To build against a specific Python version, use:
|
|||||||
make install
|
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:
|
To run the included unit tests after building, use:
|
||||||
|
|
||||||
./tests/tests
|
./tests/tests
|
||||||
|
150
src/pyotherside.qmltypes
Normal file
150
src/pyotherside.qmltypes
Normal 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" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
module io.thp.pyotherside
|
module io.thp.pyotherside
|
||||||
plugin pyothersideplugin
|
plugin pyothersideplugin
|
||||||
|
typeinfo pyotherside.qmltypes
|
||||||
|
@ -13,7 +13,7 @@ QT += qml quick svg
|
|||||||
target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
|
target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
|
|
||||||
qmldir.files += $$_PRO_FILE_PWD_/qmldir
|
qmldir.files += $$_PRO_FILE_PWD_/qmldir $$_PRO_FILE_PWD_/pyotherside.qmltypes
|
||||||
qmldir.path += $$target.path
|
qmldir.path += $$target.path
|
||||||
INSTALLS += qmldir
|
INSTALLS += qmldir
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user