Add new bluetooth class as model for scanning. Add UI to show scanned devices on top of page.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <QtQml>
|
||||
#include <QUrl>
|
||||
#include "miflora/miflora.h"
|
||||
#include "miflora/bluetoothdevices.h"
|
||||
|
||||
Q_DECL_EXPORT int main(int argc, char *argv[])
|
||||
{
|
||||
@@ -13,6 +14,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
||||
QCoreApplication::setApplicationName("qiflora");
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
qmlRegisterType<BluetoothDevices>();
|
||||
qmlRegisterType<MiFlora>("org.eyecreate.qiflora",1,0,"QiFlora");
|
||||
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user