Added vibration
This commit is contained in:
6
main.cpp
6
main.cpp
@@ -5,6 +5,7 @@
|
||||
#include <QQuickItem>
|
||||
|
||||
#include "histogramchart.h"
|
||||
#include "vibration.h"
|
||||
|
||||
#include "Manager.h"
|
||||
extern Manager mgmt;
|
||||
@@ -18,10 +19,15 @@ int main(int argc, char *argv[]) {
|
||||
qmlRegisterType<HistogramChart>("Test", 1, 0, "HistogramChart");
|
||||
|
||||
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
|
||||
engine.rootContext()->setContextProperty("mgmt", &mgmt);
|
||||
|
||||
Vibration vibration;
|
||||
engine.rootContext()->setContextProperty("Vibration", &vibration);
|
||||
|
||||
|
||||
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
||||
|
||||
engine.rootObjects().first()->dumpObjectTree();
|
||||
|
||||
Reference in New Issue
Block a user