Skip to content

Commit

Permalink
[libcontentaction] Add plugins.qmltypes. Contributes to JB#41605
Browse files Browse the repository at this point in the history
  • Loading branch information
martyone committed May 9, 2018
1 parent 2d73b60 commit e05b2ec
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
5 changes: 4 additions & 1 deletion declarative/declarative.pro
Expand Up @@ -26,9 +26,12 @@ HEADERS += \
PRE_TARGETDEPS += $$copy_qmldir.target
}

qmldir.files = qmldir
qmldir.files = qmldir plugins.qmltypes

qmldir.path = $$installPath
target.path = $$installPath

INSTALLS += target qmldir

qmltypes.commands = qmlplugindump -nonrelocatable org.nemomobile.contentaction 1.0 > $$PWD/plugins.qmltypes
QMAKE_EXTRA_TARGETS += qmltypes
35 changes: 35 additions & 0 deletions declarative/plugins.qmltypes
@@ -0,0 +1,35 @@
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 -nonrelocatable org.nemomobile.contentaction 1.0'

Module {
dependencies: []
Component {
name: "DeclarativeContentAction"
prototype: "QObject"
exports: ["org.nemomobile.contentaction/ContentAction 1.0"]
isCreatable: false
isSingleton: true
exportMetaObjectRevisions: [0]
Enum {
name: "Error"
values: {
"NoError": 0,
"FileTypeNotSupported": 1,
"FileDoesNotExist": 2,
"UrlSchemeNotSupported": 3,
"InvalidUrl": 4
}
}
Property { name: "error"; type: "Error"; isReadonly: true }
Method {
name: "trigger"
type: "bool"
Parameter { name: "url"; type: "QUrl" }
}
}
}
1 change: 1 addition & 0 deletions declarative/qmldir
@@ -1,2 +1,3 @@
module org.nemomobile.contentaction
plugin contentaction
typeinfo plugins.qmltypes

0 comments on commit e05b2ec

Please sign in to comment.