Kaynağa Gözat

typeinfos added

Reinhard Russinger 7 yıl önce
ebeveyn
işleme
416fff5a11
3 değiştirilmiş dosya ile 43 ekleme ve 2 silme
  1. 5 1
      applicationlauncher.pro
  2. 36 0
      applicationlauncher.qmltypes
  3. 2 1
      qmldir

+ 5 - 1
applicationlauncher.pro

@@ -27,7 +27,8 @@ OTHER_FILES = qmldir
     PRE_TARGETDEPS += $$copy_qmldir.target
 }
 
-qmldir.files = qmldir
+qmldir.files = qmldir \
+    applicationlauncher.qmltypes
 
 linux-buildroot-g++ {
     installPath = /usr/qml/$$replace(uri, \\., /)
@@ -41,3 +42,6 @@ linux-buildroot-g++ {
     INSTALLS += target qmldir
 }
 
+DISTFILES += \
+    applicationlauncher.qmltypes
+

+ 36 - 0
applicationlauncher.qmltypes

@@ -0,0 +1,36 @@
+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:
+// 'qmlplugindump ApplicationLauncher 1.0'
+
+Module {
+    dependencies: ["QtQuick 2.7"]
+    Component {
+        name: "Application"
+        prototype: "QObject"
+        exports: ["Application 1.0"]
+        exportMetaObjectRevisions: [0]
+        Property { name: "appName"; type: "string" }
+        Property { name: "arguments"; type: "string" }
+        Property { name: "stdERR"; type: "string" }
+        Property { name: "stdOUT"; type: "string" }
+        Property { name: "outFName"; type: "string" }
+        Property { name: "exitCode"; type: "int"; isReadonly: true }
+        Property { name: "exitStatus"; type: "int"; isReadonly: true }
+        Property { name: "exitError"; type: "int"; isReadonly: true }
+        Signal { name: "appFinished" }
+        Signal { name: "appStarted" }
+        Signal { name: "appError" }
+        Method { name: "launchScript" }
+    }
+    Component {
+        name: "ApplicationLauncher"
+        defaultProperty: "data"
+        prototype: "QQuickItem"
+        exports: ["ApplicationLauncher 1.0"]
+        exportMetaObjectRevisions: [0]
+    }
+}

+ 2 - 1
qmldir

@@ -1,3 +1,4 @@
 module ApplicationLauncher
+class ApplicationLauncher
 plugin ApplicationLauncher
-
+typeinfo applicationlauncher.qmltypes