Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
b94bafe0
Unverified
Commit
b94bafe0
authored
Aug 19, 2020
by
Don Gagne
Committed by
GitHub
Aug 19, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9002 from airmap/instrument_qrc
QML Image: Cannot open: error fix on custom build
parents
560bd1b2
68f7c760
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
328 additions
and
0 deletions
+328
-0
InstrumentValueIcons.qrc
custom-example/InstrumentValueIcons.qrc
+301
-0
updateinstrumentqrc.py
custom-example/updateinstrumentqrc.py
+21
-0
qgroundcontrol.pro
qgroundcontrol.pro
+6
-0
No files found.
custom-example/InstrumentValueIcons.qrc
0 → 100644
View file @
b94bafe0
This diff is collapsed.
Click to expand it.
custom-example/updateinstrumentqrc.py
0 → 100755
View file @
b94bafe0
#!/usr/bin/env python
import
os
def
main
():
qrcFile
=
open
(
"InstrumentValueIcons.qrc"
,
'wt'
)
qrcFile
.
write
(
"<RCC>
\n
"
)
qrcFile
.
write
(
"
\t
<qresource prefix=
\"
/InstrumentValueIcons
\"
>
\n
"
)
files
=
os
.
listdir
(
"../resources/InstrumentValueIcons"
)
for
filename
in
files
:
if
filename
.
endswith
(
".svg"
):
qrcFile
.
write
(
"
\t\t
<file alias=
\"
%
s
\"
>../resources/InstrumentValueIcons/
%
s</file>
\n
"
%
(
filename
,
filename
))
qrcFile
.
write
(
"
\t
</qresource>
\n
"
)
qrcFile
.
write
(
"</RCC>
\n
"
)
qrcFile
.
close
()
if
__name__
==
'__main__'
:
main
()
qgroundcontrol.pro
View file @
b94bafe0
...
@@ -345,6 +345,12 @@ CustomBuild {
...
@@ -345,6 +345,12 @@ CustomBuild {
}
else
{
}
else
{
RESOURCES
+=
$$
PWD
/
qgcimages
.
qrc
RESOURCES
+=
$$
PWD
/
qgcimages
.
qrc
}
}
exists
(
$$
PWD
/
custom
/
InstrumentValueIcons
.
qrc
)
{
message
(
"Using custom InstrumentValueIcons.qrc"
)
RESOURCES
+=
$$
PWD
/
custom
/
InstrumentValueIcons
.
qrc
}
else
{
RESOURCES
+=
$$
PWD
/
resources
/
InstrumentValueIcons
/
InstrumentValueIcons
.
qrc
}
}
else
{
}
else
{
DEFINES
+=
QGC_APPLICATION_NAME
=
\
"\\\"
QGroundControl
\\\
"\"
DEFINES
+=
QGC_APPLICATION_NAME
=
\
"\\\"
QGroundControl
\\\
"\"
DEFINES
+=
QGC_ORG_NAME
=
\
"\\\"
QGroundControl
.
org
\\\
"\"
DEFINES
+=
QGC_ORG_NAME
=
\
"\\\"
QGroundControl
.
org
\\\
"\"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment