1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-27 16:54:15 +01:00

Make config gadget artwork on transparent background, as well as curves. Looks much much better!

This commit is contained in:
elafargue 2011-05-02 22:56:01 +02:00
parent 37359a82b9
commit ff51e996f6
2 changed files with 45 additions and 19 deletions

View File

@ -73,7 +73,7 @@
<item> <item>
<widget class="QStackedWidget" name="airframesWidget"> <widget class="QStackedWidget" name="airframesWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="fixedWing"> <widget class="QWidget" name="fixedWing">
<property name="enabled"> <property name="enabled">
@ -620,7 +620,7 @@ Typical values are 100% for + configuration and 50% for X configuration on quads
Typical value is 50% for + or X configuration on quads.</string> Typical value is 50% for + or X configuration on quads.</string>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>0</number> <number>-100</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>100</number> <number>100</number>
@ -666,6 +666,15 @@ Typical value is 50% for + or X configuration on quads.</string>
<height>110</height> <height>110</height>
</size> </size>
</property> </property>
<property name="styleSheet">
<string notr="true">background:transparent</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -679,6 +688,19 @@ Typical value is 50% for + or X configuration on quads.</string>
</property> </property>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_11"> <layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<spacer name="horizontalSpacer_13">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QLabel" name="label_24"> <widget class="QLabel" name="label_24">
<property name="text"> <property name="text">
@ -733,7 +755,9 @@ Typical value is 50% for + or X configuration on quads.</string>
<height>120</height> <height>120</height>
</size> </size>
</property> </property>
<zorder></zorder> <property name="styleSheet">
<string notr="true">background:transparent</string>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -2289,12 +2313,12 @@ p, li { white-space: pre-wrap; }
<slot>setNum(int)</slot> <slot>setNum(int)</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
<x>236</x> <x>124</x>
<y>253</y> <y>126</y>
</hint> </hint>
<hint type="destinationlabel"> <hint type="destinationlabel">
<x>226</x> <x>124</x>
<y>310</y> <y>126</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>
@ -2305,12 +2329,12 @@ p, li { white-space: pre-wrap; }
<slot>setNum(int)</slot> <slot>setNum(int)</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
<x>306</x> <x>124</x>
<y>273</y> <y>126</y>
</hint> </hint>
<hint type="destinationlabel"> <hint type="destinationlabel">
<x>301</x> <x>124</x>
<y>315</y> <y>126</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>
@ -2321,12 +2345,12 @@ p, li { white-space: pre-wrap; }
<slot>setNum(int)</slot> <slot>setNum(int)</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
<x>651</x> <x>115</x>
<y>112</y> <y>117</y>
</hint> </hint>
<hint type="destinationlabel"> <hint type="destinationlabel">
<x>600</x> <x>115</x>
<y>112</y> <y>117</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>
@ -2337,12 +2361,12 @@ p, li { white-space: pre-wrap; }
<slot>setNum(int)</slot> <slot>setNum(int)</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
<x>659</x> <x>115</x>
<y>211</y> <y>117</y>
</hint> </hint>
<hint type="destinationlabel"> <hint type="destinationlabel">
<x>581</x> <x>115</x>
<y>218</y> <y>117</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>

View File

@ -60,6 +60,8 @@ MixerCurveWidget::MixerCurveWidget(QWidget *parent) : QGraphicsView(parent)
curveMax=1.0; curveMax=1.0;
setFrameStyle(QFrame::NoFrame);
setStyleSheet("background:transparent");
QGraphicsScene *scene = new QGraphicsScene(this); QGraphicsScene *scene = new QGraphicsScene(this);
QSvgRenderer *renderer = new QSvgRenderer(); QSvgRenderer *renderer = new QSvgRenderer();