Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugins.qmltypes. JB#59899 #3

Merged
merged 1 commit into from Jan 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/plugin/plugin.pro
Expand Up @@ -9,6 +9,7 @@ target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
INSTALLS += target

qmlmodule.files += \
plugins.qmltypes \
qmldir \
ContextProperty.qml \
ContextPropertyBase.qml
Expand All @@ -23,3 +24,6 @@ HEADERS += \
SOURCES += \
plugin.cpp

qmltypes.commands = qmlplugindump -nonrelocatable \
org.freedesktop.contextkit 1.0 > $$PWD/plugins.qmltypes
QMAKE_EXTRA_TARGETS += qmltypes
11 changes: 11 additions & 0 deletions src/plugin/plugins.qmltypes
@@ -0,0 +1,11 @@
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.freedesktop.contextkit 1.0'

Module {
dependencies: ["QtQuick 2.6"]
}
1 change: 1 addition & 0 deletions src/plugin/qmldir
@@ -1,4 +1,5 @@
module org.freedesktop.contextkit
plugin contextkit
typeinfo plugins.qmltypes
ContextProperty 1.0 ContextProperty.qml
ContextPropertyBase 1.0 ContextPropertyBase.qml
4 changes: 4 additions & 0 deletions src/providers/battery/battery.pro
Expand Up @@ -11,6 +11,7 @@ target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
INSTALLS += target

qmlmodule.files += \
plugins.qmltypes \
qmldir
qmlmodule.path += $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
INSTALLS += qmlmodule
Expand All @@ -27,3 +28,6 @@ SOURCES += \
provider_power_udev.cpp \
plugin.cpp

qmltypes.commands = qmlplugindump -nonrelocatable \
org.freedesktop.contextkit.providers.battery 1.0 > $$PWD/plugins.qmltypes
QMAKE_EXTRA_TARGETS += qmltypes
31 changes: 31 additions & 0 deletions src/providers/battery/plugins.qmltypes
@@ -0,0 +1,31 @@
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.freedesktop.contextkit.providers.battery 1.0'

Module {
dependencies: ["QtQuick 2.0"]
Component {
name: "BatteryContextPropertyProvider"
prototype: "QObject"
exports: [
"org.freedesktop.contextkit.providers.battery/BatteryContextPropertyProvider 1.0"
]
exportMetaObjectRevisions: [0]
Property { name: "interval"; type: "int" }
Property { name: "active"; type: "bool" }
Property { name: "capacity"; type: "long"; isReadonly: true }
Property { name: "charge"; type: "long"; isReadonly: true }
Property { name: "current"; type: "long"; isReadonly: true }
Property { name: "energy"; type: "long"; isReadonly: true }
Property { name: "energyFull"; type: "long"; isReadonly: true }
Property { name: "power"; type: "long"; isReadonly: true }
Property { name: "temperature"; type: "long"; isReadonly: true }
Property { name: "timeUntilFull"; type: "long"; isReadonly: true }
Property { name: "timeUntilLow"; type: "long"; isReadonly: true }
Property { name: "voltage"; type: "long"; isReadonly: true }
}
}
1 change: 1 addition & 0 deletions src/providers/battery/qmldir
@@ -1,2 +1,3 @@
module org.freedesktop.contextkit.providers.battery
plugin contextkitbatteryprovider
typeinfo plugins.qmltypes