Browse Source

Merge pull request #3831 from dogmaphobic/motorIcon

Adding Motor Component Icon
QGC4.4
Gus Grubba 9 years ago committed by GitHub
parent
commit
fa84ada7d8
  1. 2
      qgcresources.qrc
  2. 12
      src/AutoPilotPlugins/Common/Images/MotorComponentIcon.svg
  3. 2
      src/AutoPilotPlugins/Common/MotorComponent.cc
  4. BIN
      src/AutoPilotPlugins/Common/MotorComponentIcon.png

2
qgcresources.qrc

@ -63,7 +63,7 @@ @@ -63,7 +63,7 @@
<file alias="LandModeCopter.svg">src/AutoPilotPlugins/PX4/Images/LandModeCopter.svg</file>
<file alias="LowBattery.svg">src/AutoPilotPlugins/PX4/Images/LowBattery.svg</file>
<file alias="LowBatteryLight.svg">src/AutoPilotPlugins/PX4/Images/LowBatteryLight.svg</file>
<file alias="MotorComponentIcon.png">src/AutoPilotPlugins/Common/MotorComponentIcon.png</file>
<file alias="MotorComponentIcon.svg">src/AutoPilotPlugins/Common/Images/MotorComponentIcon.svg</file>
<file alias="PowerComponentBattery_01cell.svg">src/AutoPilotPlugins/PX4/Images/PowerComponentBattery_01cell.svg</file>
<file alias="PowerComponentBattery_02cell.svg">src/AutoPilotPlugins/PX4/Images/PowerComponentBattery_02cell.svg</file>
<file alias="PowerComponentBattery_03cell.svg">src/AutoPilotPlugins/PX4/Images/PowerComponentBattery_03cell.svg</file>

12
src/AutoPilotPlugins/Common/Images/MotorComponentIcon.svg

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 72 72" enable-background="new 0 0 72 72" xml:space="preserve">
<g>
<rect x="3.6" y="31.831" fill="#FFFFFF" width="64.8" height="33.188"/>
<rect x="13.549" y="65.019" fill="#FFFFFF" width="44.902" height="5.256"/>
<rect x="13.549" y="27.641" fill="#FFFFFF" width="44.902" height="5.256"/>
<rect x="31.515" y="20.234" fill="#FFFFFF" width="8.97" height="7.73"/>
<path fill="#FFFFFF" d="M39.439,3.34l9.255,17.678H36H23.305L32.561,3.34C33.688,1.186,38.312,1.186,39.439,3.34z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 766 B

2
src/AutoPilotPlugins/Common/MotorComponent.cc

@ -31,7 +31,7 @@ QString MotorComponent::description(void) const @@ -31,7 +31,7 @@ QString MotorComponent::description(void) const
QString MotorComponent::iconResource(void) const
{
return QStringLiteral("/qmlimages/MotorComponentIcon.png");
return QStringLiteral("/qmlimages/MotorComponentIcon.svg");
}
bool MotorComponent::requiresSetup(void) const

BIN
src/AutoPilotPlugins/Common/MotorComponentIcon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 684 B

Loading…
Cancel
Save