Skip to content
Snippets Groups Projects
Commit 2dd2d192 authored by Marco Matthies's avatar Marco Matthies
Browse files

Improve comments

parent 7e09a17d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment