1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Fix bug introduced with PiPX merge where the refreshWidgetsValues(UAVObject *)

gained the parameter.  However, objects that had overriden that method were now
creating a new method and not getting called at the right time.  This fixes the
Output and Aircraft type panels
This commit is contained in:
James Cotton 2012-05-26 03:07:36 -05:00
parent 5a6e02a688
commit a24375ca71
5 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ ConfigProHWWidget::ConfigProHWWidget(QWidget *parent) : ConfigTaskWidget(parent)
addUAVObjectToWidgetRelation("HwSettings","TelemetrySpeed",m_telemetry->telemetrySpeed);
enableControls(false);
populateWidgets();
refreshWidgetsValues();
refreshWidgetsValues(NULL);
}
ConfigProHWWidget::~ConfigProHWWidget()

View File

@ -242,7 +242,7 @@ void ConfigOutputWidget::sendChannelTest(int index, int value)
/**
Request the current config from the board (RC Output)
*/
void ConfigOutputWidget::refreshWidgetsValues()
void ConfigOutputWidget::refreshWidgetsValues(UAVObject *)
{
bool dirty=isDirty();

View File

@ -69,7 +69,7 @@ private:
private slots:
void stopTests();
void disableIfNotMe(UAVObject *obj);
virtual void refreshWidgetsValues();
virtual void refreshWidgetsValues(UAVObject * obj = NULL);
void updateObjectsFromWidgets();
void runChannelTests(bool state);
void sendChannelTest(int index, int value);

View File

@ -525,7 +525,7 @@ void ConfigVehicleTypeWidget::updateCustomThrottle2CurveValue(QList<double> list
/**
Refreshes the current value of the SystemSettings which holds the aircraft type
*/
void ConfigVehicleTypeWidget::refreshWidgetsValues()
void ConfigVehicleTypeWidget::refreshWidgetsValues(UAVObject *)
{
if(!allObjectsUpdated())
return;

View File

@ -76,7 +76,7 @@ private:
UAVObject::Metadata accInitialData;
private slots:
virtual void refreshWidgetsValues();
virtual void refreshWidgetsValues(UAVObject * obj = NULL);
void refreshFixedWingWidgetsValues(QString frameType);
void refreshMultiRotorWidgetsValues(QString frameType);
void refreshGroundVehicleWidgetsValues(QString frameType);