Skip to content

Commit

Permalink
Merge branch 'jb41605' into 'master'
Browse files Browse the repository at this point in the history
Add plugins.qmltypes

See merge request mer-core/libmce-qt!2
  • Loading branch information
pvuorela committed Aug 23, 2018
2 parents ef9b056 + fd1eb06 commit 2febc46
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 6 deletions.
3 changes: 0 additions & 3 deletions lib/lib.pro
Expand Up @@ -7,8 +7,6 @@ QT -= gui
QMAKE_CXXFLAGS += -Wno-unused-parameter -Wno-psabi
INCLUDEPATH += include

include(version.pri)

TEMPLATE = lib
DEFINES += QMCE_LIBRARY

Expand Down Expand Up @@ -59,6 +57,5 @@ QMAKE_PKGCONFIG_DESTDIR = pkgconfig
QMAKE_PKGCONFIG_INCDIR = $$headers.path
QMAKE_PKGCONFIG_DESCRIPTION = Qt bindings for mce
QMAKE_PKGCONFIG_PREFIX = $$PREFIX
QMAKE_PKGCONFIG_VERSION = $$VERSION

INSTALLS += target headers pkgconfig
1 change: 0 additions & 1 deletion lib/version.pri

This file was deleted.

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
2 changes: 1 addition & 1 deletion rpm/libmce-qt5.spec
Expand Up @@ -42,7 +42,7 @@ This package contains the development header files for libmce-qt5
%setup -q -n %{name}-%{version}

%build
%qtc_qmake5
%qtc_qmake5 "VERSION=$(sed 's/+.*//' <<<"%{version}")"
%qtc_make %{?_smp_mflags}

%install
Expand Down

0 comments on commit 2febc46

Please sign in to comment.