1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

ConfigTaskWidget: add some qDebug() statements for unhandled widget types

This commit is contained in:
Oleg Semyonov 2012-01-14 23:00:23 +02:00
parent 4fcd0f97c5
commit 5c20f1e37d

View File

@ -70,8 +70,10 @@ void ConfigTaskWidget::addUAVObjectToWidgetRelation(QString object, QString fiel
connect(obj, SIGNAL(objectUpdated(UAVObject*)), this, SLOT(refreshWidgetsValues()));
}
//smartsave->addObject(obj);
if(!field.isEmpty() && obj)
if(!field.isEmpty() && obj) {
_field = obj->getField(QString(field));
qDebug() << "Non-existent object field " << object + "." + field << " in " << __func__;
}
objectToWidget * ow=new objectToWidget();
ow->field=_field;
ow->object=obj;
@ -117,6 +119,10 @@ void ConfigTaskWidget::addUAVObjectToWidgetRelation(QString object, QString fiel
{
connect(cb,SIGNAL(clicked()),this,SLOT(widgetsContentsChanged()));
}
else
{
qDebug() << "Unhandled widget type in " << __func__;
}
}
@ -205,6 +211,10 @@ void ConfigTaskWidget::populateWidgets()
{
cb->setChecked(ow->field->getValue(ow->index).toBool());
}
else
{
qDebug() << "Unhandled widget type in " << __func__;
}
}
setDirty(dirtyBack);
}
@ -242,6 +252,10 @@ void ConfigTaskWidget::refreshWidgetsValues()
{
cb->setChecked(ow->field->getValue(ow->index).toBool());
}
else
{
qDebug() << "Unhandled widget type in " << __func__;
}
}
setDirty(dirtyBack);
}
@ -278,6 +292,10 @@ void ConfigTaskWidget::updateObjectsFromWidgets()
{
ow->field->setValue((cb->isChecked()?"TRUE":"FALSE"),ow->index);
}
else
{
qDebug() << "Unhandled widget type in " << __func__;
}
}
}