mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
LP-245 config: don't report missing implementation for readonly components (QLable and QProgressBar)
This commit is contained in:
parent
cb11b0cfd7
commit
8e3c83b7ba
@ -43,6 +43,7 @@
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QSpinBox>
|
||||
#include <QProgressBar>
|
||||
#include <QTableWidget>
|
||||
#include <QToolButton>
|
||||
#include <QUrl>
|
||||
@ -879,8 +880,12 @@ void ConfigTaskWidget::connectWidgetUpdatesToSlot(QWidget *widget, const char *f
|
||||
connect(cb, SIGNAL(clicked()), this, function, Qt::UniqueConnection);
|
||||
} else if (QToolButton * cb = qobject_cast<QToolButton *>(widget)) {
|
||||
connect(cb, SIGNAL(clicked()), this, function, Qt::UniqueConnection);
|
||||
} else if (qobject_cast<QLabel *>(widget)) {
|
||||
// read only
|
||||
} else if (qobject_cast<QProgressBar *>(widget)) {
|
||||
// read only
|
||||
} else {
|
||||
qDebug() << __FUNCTION__ << "widget binding not implemented" << widget->metaObject()->className();
|
||||
qDebug() << __FUNCTION__ << "widget binding not implemented for" << widget->metaObject()->className();
|
||||
}
|
||||
}
|
||||
|
||||
@ -909,8 +914,12 @@ void ConfigTaskWidget::disconnectWidgetUpdatesToSlot(QWidget *widget, const char
|
||||
disconnect(cb, SIGNAL(clicked()), this, function);
|
||||
} else if (QToolButton * cb = qobject_cast<QToolButton *>(widget)) {
|
||||
disconnect(cb, SIGNAL(clicked()), this, function);
|
||||
} else if (qobject_cast<QLabel *>(widget)) {
|
||||
// read only
|
||||
} else if (qobject_cast<QProgressBar *>(widget)) {
|
||||
// read only
|
||||
} else {
|
||||
qDebug() << __FUNCTION__ << "widget binding not implemented" << widget->metaObject()->className();
|
||||
qDebug() << __FUNCTION__ << "widget binding not implemented for" << widget->metaObject()->className();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1019,7 +1028,7 @@ bool ConfigTaskWidget::setWidgetFromField(QWidget *widget, UAVObjectField *field
|
||||
if (result) {
|
||||
return true;
|
||||
} else {
|
||||
qDebug() << __FUNCTION__ << "widget to uavobject relation not implemented" << widget->metaObject()->className();
|
||||
qDebug() << __FUNCTION__ << "widget to uavobject relation not implemented for" << widget->metaObject()->className();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user