From 2dd2d19204987ead14fc052726e39014bf7196b2 Mon Sep 17 00:00:00 2001
From: Marco Matthies <71844+marcom@users.noreply.github.com>
Date: Mon, 8 Jul 2024 08:08:22 +0200
Subject: [PATCH] Improve comments

---
 c++/main.cpp | 3 +--
 c++/main.qml | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/c++/main.cpp b/c++/main.cpp
index 9421885..64b2361 100644
--- a/c++/main.cpp
+++ b/c++/main.cpp
@@ -22,6 +22,7 @@ QString getFileUrlRelativeToExecutable(const QString &relativeFilePath) {
 int main(int argc, char *argv[])
 {
     QGuiApplication gui_app(argc, argv);
+    QQmlApplicationEngine engine;
 
     // Check if TIFF format is supported
     QStringList supportedFormats;
@@ -33,8 +34,6 @@ int main(int argc, char *argv[])
         return -1;
     }
 
-    QQmlApplicationEngine engine;
-
     QString mapImagePath = getFileUrlRelativeToExecutable("../../data/regions/jena-small/landcover.tif");
     engine.rootContext()->setContextProperty("mapImagePath", mapImagePath);
 
diff --git a/c++/main.qml b/c++/main.qml
index 27afbbb..bd5da17 100644
--- a/c++/main.qml
+++ b/c++/main.qml
@@ -14,7 +14,7 @@ ApplicationWindow {
     // these are the coordinates of the map image
     property var mapCoords: ({ x: 0, y: 0, width: 0, height: 0 })
 
-    // calculate imgCoords of an Image
+    // calculate the visible coordinates of an Image
     function calculateVisibleGeometry(img) {
         var containerWidth = img.width;
         var containerHeight = img.height;
-- 
GitLab