From 6b5abd4278a589b7cf19092d5d2f274dac71e562 Mon Sep 17 00:00:00 2001 From: Ruediger Gad Date: Thu, 12 Apr 2012 08:29:42 +0200 Subject: [PATCH] Add missing QML type. --- QZeeControl.pro.user | 2 +- main.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/QZeeControl.pro.user b/QZeeControl.pro.user index 7b3de88..b717b86 100644 --- a/QZeeControl.pro.user +++ b/QZeeControl.pro.user @@ -1,6 +1,6 @@ - + ProjectExplorer.Project.ActiveTarget diff --git a/main.cpp b/main.cpp index ada1050..fdfa1d1 100644 --- a/main.cpp +++ b/main.cpp @@ -1,10 +1,14 @@ #include +#include #include "qmlapplicationviewer.h" +#include "btconnector.h" Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer app(createApplication(argc, argv)); + qmlRegisterType("qzeecontrol", 1, 0, "BtConnector"); + QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/QZeeControl/main.qml")); -- 1.7.9.5