From fd5e3a8af9d3e464a69324b0ba7c033c152ff784 Mon Sep 17 00:00:00 2001
From: rohithzmoi <166651631+rohithzmoi@users.noreply.github.com>
Date: Sat, 31 Aug 2024 17:02:25 +0530
Subject: [PATCH] Update main.cpp
Signed-off-by: rohithzmoi <166651631+rohithzmoi@users.noreply.github.com>
---
main.cpp | 28 ++++++++++++++++++++++------
1 file changed, 22 insertions(+), 6 deletions(-)
diff --git a/main.cpp b/main.cpp
index bc9ea5a..1c78d92 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,3 +1,22 @@
+
+/*
+ Original Copyright (C) 2019-2021 Doug McLain
+ Modification Copyright (C) 2024 Rohith Namboothiri
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+*/
+
#include
#include
#include
@@ -15,18 +34,15 @@ int main(int argc, char *argv[])
QQuickStyle::setStyle("Fusion");
app.setWindowIcon(QIcon(":/images/droidstar.png"));
- // Register DroidStar type if necessary
+ // Register DroidStar type
qmlRegisterType("org.dudetronics.droidstar", 1, 0, "DroidStar");
- // qmlRegisterType("org.dudetronics.droidstar", 1, 0, "VUIDUpdater");
+
QQmlApplicationEngine engine;
//VUIDUpdater *vuidUpdater = new VUIDUpdater(); // Create instance
VUIDUpdater vuidUpdater;
- // engine.rootContext()->setContextProperty("vuidUpdater", vuidUpdater); // Provide to QML
-
-
- engine.rootContext()->setContextProperty("vuidUpdater", &vuidUpdater); // Provide to QML by passing a pointer
+ engine.rootContext()->setContextProperty("vuidUpdater", &vuidUpdater); // Provide to QML by passing a pointer
// Register LogHandler class with QML
LogHandler logHandler;