Skip to content

Commit

Permalink
[mce-qt] Add plugins.qmltypes. Contributes to JB#41605
Browse files Browse the repository at this point in the history
  • Loading branch information
martyone committed Aug 23, 2018
1 parent 7e024d4 commit fd1eb06
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/plugin.pro
Expand Up @@ -14,6 +14,9 @@ OTHER_FILES += qmldir

target.path = $$[QT_INSTALL_QML]/Nemo/Mce
qmldir.path = $$[QT_INSTALL_QML]/Nemo/Mce
qmldir.files += qmldir
qmldir.files += qmldir plugins.qmltypes

INSTALLS += target qmldir

qmltypes.commands = qmlplugindump -nonrelocatable Nemo.Mce 1.0 > $$PWD/plugins.qmltypes
QMAKE_EXTRA_TARGETS += qmltypes
48 changes: 48 additions & 0 deletions plugin/plugins.qmltypes
@@ -0,0 +1,48 @@
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 Nemo.Mce 1.0'

Module {
dependencies: []
Component {
name: "QMceDisplay"
prototype: "QObject"
exports: ["Nemo.Mce/MceDisplay 1.0"]
exportMetaObjectRevisions: [0]
Enum {
name: "State"
values: {
"DisplayOff": 0,
"DisplayDim": 1,
"DisplayOn": 2
}
}
Property { name: "valid"; type: "bool"; isReadonly: true }
Property { name: "state"; type: "State"; isReadonly: true }
}
Component {
name: "QMceTkLock"
prototype: "QObject"
exports: ["Nemo.Mce/MceTkLock 1.0"]
exportMetaObjectRevisions: [0]
Enum {
name: "Mode"
values: {
"Locked": 0,
"SilentLocked": 1,
"LockedDim": 2,
"LockedDelay": 3,
"SilentLockedDim": 4,
"Unlocked": 5,
"SilentUnlocked": 6
}
}
Property { name: "valid"; type: "bool"; isReadonly: true }
Property { name: "locked"; type: "bool"; isReadonly: true }
Property { name: "mode"; type: "Mode"; isReadonly: true }
}
}
1 change: 1 addition & 0 deletions plugin/qmldir
@@ -1,2 +1,3 @@
module Nemo.Mce
plugin qmcedeclarative
typeinfo plugins.qmltypes

0 comments on commit fd1eb06

Please sign in to comment.