Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
5c9fd5ed
Commit
5c9fd5ed
authored
Sep 24, 2016
by
Daniel Agar
Browse files
Linux add icon with setWindowIcon
-fixes #4073
parent
586bf6ea
Changes
2
Show whitespace changes
Inline
Side-by-side
qgcresources.qrc
View file @
5c9fd5ed
...
...
@@ -3,11 +3,8 @@
<file alias="opensans">resources/fonts/OpenSans-Regular.ttf</file>
<file alias="opensans-demibold">resources/fonts/OpenSans-Semibold.ttf</file>
</qresource>
<qresource prefix="/qmlimages">
<file alias="AirframeComponentIcon.png">src/AutoPilotPlugins/Common/Images/AirframeComponentIcon.png</file>
<!-- These are here for back compat with previous airframe meta data -->
<file alias="AirframeFlyingWing.png">src/AutoPilotPlugins/Common/Images/FlyingWing.svg</file>
<file alias="AirframeHexaRotorPlus.png">src/AutoPilotPlugins/Common/Images/HexaRotorPlus.svg</file>
<file alias="AirframeHexaRotorX.png">src/AutoPilotPlugins/Common/Images/HexaRotorX.svg</file>
...
...
@@ -18,8 +15,6 @@
<file alias="AirframeQuadRotorX.png">src/AutoPilotPlugins/Common/Images/QuadRotorX.svg</file>
<file alias="AirframeSimulation.png">src/AutoPilotPlugins/Common/Images/AirframeSimulation.svg</file>
<file alias="AirframeStandardPlane.png">src/AutoPilotPlugins/Common/Images/Plane.svg</file>
<!-- Aiframe images supported by airfame meta data ml image tag -->
<file alias="Airframe/AirframeSimulation">src/AutoPilotPlugins/Common/Images/AirframeSimulation.svg</file>
<file alias="Airframe/AirframeUnknown">src/AutoPilotPlugins/Common/Images/AirframeUnknown.svg</file>
<file alias="Airframe/Boat">src/AutoPilotPlugins/Common/Images/Boat.svg</file>
...
...
@@ -179,6 +174,7 @@
<file alias="TrashDelete.svg">resources/TrashDelete.svg</file>
<file alias="XDelete.svg">resources/XDelete.svg</file>
<file alias="XDeleteBlack.svg">resources/XDeleteBlack.svg</file>
<file>resources/icons/qgroundcontrol.ico</file>
</qresource>
<qresource prefix="/res/firmware">
<file alias="px4.png">resources/firmware/px4.png</file>
...
...
src/main.cc
View file @
5c9fd5ed
...
...
@@ -17,6 +17,7 @@
#include
<QtGlobal>
#include
<QApplication>
#include
<QIcon>
#include
<QSslSocket>
#include
<QProcessEnvironment>
#include
<QHostAddress>
...
...
@@ -211,6 +212,10 @@ int main(int argc, char *argv[])
QGCApplication
*
app
=
new
QGCApplication
(
argc
,
argv
,
runUnitTests
);
Q_CHECK_PTR
(
app
);
#ifdef Q_OS_LINUX
QApplication
::
setWindowIcon
(
QIcon
(
":/res/resources/icons/qgroundcontrol.ico"
));
#endif
/* Q_OS_LINUX */
// There appears to be a threading issue in qRegisterMetaType which can cause it to throw a qWarning
// about duplicate type converters. This is caused by a race condition in the Qt code. Still working
// with them on tracking down the bug. For now we register the type which is giving us problems here
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment