mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
OP-1668 Fixed widget updates.
This commit is contained in:
parent
4f7344121e
commit
73954dadea
ground/openpilotgcs/src/plugins/config
@ -82,9 +82,12 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>The source of Curve 1 will always be Throttle</string>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Thrust</string>
|
<string>Throttle</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
@ -173,11 +176,6 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>Thrust</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -191,9 +191,9 @@ void ConfigVehicleTypeWidget::switchAirframeType(int index)
|
|||||||
Note: The default behavior of ConfigTaskWidget is bypassed.
|
Note: The default behavior of ConfigTaskWidget is bypassed.
|
||||||
Therefore no automatic synchronization of UAV Objects to UI is done.
|
Therefore no automatic synchronization of UAV Objects to UI is done.
|
||||||
*/
|
*/
|
||||||
void ConfigVehicleTypeWidget::refreshWidgetsValues(UAVObject *o)
|
void ConfigVehicleTypeWidget::refreshWidgetsValues(UAVObject *object)
|
||||||
{
|
{
|
||||||
Q_UNUSED(o);
|
ConfigTaskWidget::refreshWidgetsValues(object);
|
||||||
|
|
||||||
if (!allObjectsUpdated()) {
|
if (!allObjectsUpdated()) {
|
||||||
return;
|
return;
|
||||||
@ -248,7 +248,6 @@ void ConfigVehicleTypeWidget::refreshWidgetsValues(UAVObject *o)
|
|||||||
m_aircraft->nameEdit->setText(name);
|
m_aircraft->nameEdit->setText(name);
|
||||||
|
|
||||||
updateFeedForwardUI();
|
updateFeedForwardUI();
|
||||||
|
|
||||||
setDirty(dirty);
|
setDirty(dirty);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -306,6 +305,7 @@ void ConfigVehicleTypeWidget::updateObjectsFromWidgets()
|
|||||||
|
|
||||||
// call refreshWidgetsValues() to reflect actual saved values
|
// call refreshWidgetsValues() to reflect actual saved values
|
||||||
refreshWidgetsValues();
|
refreshWidgetsValues();
|
||||||
|
ConfigTaskWidget::updateObjectsFromWidgets();
|
||||||
updateFeedForwardUI();
|
updateFeedForwardUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ public:
|
|||||||
~ConfigVehicleTypeWidget();
|
~ConfigVehicleTypeWidget();
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
virtual void refreshWidgetsValues(UAVObject *o = NULL);
|
virtual void refreshWidgetsValues(UAVObject *object = NULL);
|
||||||
virtual void updateObjectsFromWidgets();
|
virtual void updateObjectsFromWidgets();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user