Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Persefone desktop
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Persefone
Persefone desktop
Commits
2dd2d192
Commit
2dd2d192
authored
10 months ago
by
Marco Matthies
Browse files
Options
Downloads
Patches
Plain Diff
Improve comments
parent
7e09a17d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
c++/main.cpp
+1
-2
1 addition, 2 deletions
c++/main.cpp
c++/main.qml
+1
-1
1 addition, 1 deletion
c++/main.qml
with
2 additions
and
3 deletions
c++/main.cpp
+
1
−
2
View file @
2dd2d192
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
c++/main.qml
+
1
−
1
View file @
2dd2d192
...
...
@@ -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
imgCoord
s of an Image
// calculate
the visible coordinate
s of an Image
function
calculateVisibleGeometry
(
img
)
{
var
containerWidth
=
img
.
width
;
var
containerHeight
=
img
.
height
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment