Fix deprecated eventTypeName and make json files visible to the Qt Creator

This commit is contained in:
Simon Stürz 2018-02-09 13:09:52 +01:00 committed by Michael Zanetti
parent 8d7c74634f
commit b4bd45d82a
3 changed files with 6 additions and 3 deletions

View File

@ -41,7 +41,7 @@
"id": "6d5e792a-c786-40d2-ae35-a48ac6fafcbc",
"name": "connected",
"displayName": "connected",
"eventTypeName": "connected changed",
"displayNameEvent": "connected changed",
"type": "bool",
"defaultValue": false
},
@ -64,7 +64,7 @@
"name": "color",
"displayName": "color",
"displayNameEvent": "color changed",
"disoplayNameAction": "Set color",
"displayNameAction": "Set color",
"type": "QColor",
"ruleRelevant": false,
"eventRuleRelevant": false,

View File

@ -18,6 +18,9 @@ snappy{
INCLUDEPATH+=$$(SNAPCRAFT_STAGE)/usr/include/guh
}
# Make the device plugin json file visible in the Qt Creator
OTHER_FILES+=$$PWD/$${TARGET}/deviceplugin"$$TARGET".json
# Create plugininfo file
plugininfo.commands = guh-generateplugininfo --filetype i --jsonfile $$PWD/$${TARGET}/deviceplugin"$$TARGET".json --output plugininfo.h --builddir $$OUT_PWD; \
guh-generateplugininfo --filetype e --jsonfile $$PWD/$${TARGET}/deviceplugin"$$TARGET".json --output extern-plugininfo.h --builddir $$OUT_PWD;

View File

@ -47,7 +47,7 @@
"id": "5c400da4-a14e-4e0a-be9f-c82ffe7e1972",
"name": "hardwareRevision",
"displayName": "Hardware revision",
"eventTypeName": "Hardware revision changed",
"displayNameEvent": "Hardware revision changed",
"type": "QString",
"defaultValue": "-"
},