mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-31 16:52:10 +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 <QLabel>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QSpinBox>
|
#include <QSpinBox>
|
||||||
|
#include <QProgressBar>
|
||||||
#include <QTableWidget>
|
#include <QTableWidget>
|
||||||
#include <QToolButton>
|
#include <QToolButton>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
@ -879,8 +880,12 @@ void ConfigTaskWidget::connectWidgetUpdatesToSlot(QWidget *widget, const char *f
|
|||||||
connect(cb, SIGNAL(clicked()), this, function, Qt::UniqueConnection);
|
connect(cb, SIGNAL(clicked()), this, function, Qt::UniqueConnection);
|
||||||
} else if (QToolButton * cb = qobject_cast<QToolButton *>(widget)) {
|
} else if (QToolButton * cb = qobject_cast<QToolButton *>(widget)) {
|
||||||
connect(cb, SIGNAL(clicked()), this, function, Qt::UniqueConnection);
|
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 {
|
} 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);
|
disconnect(cb, SIGNAL(clicked()), this, function);
|
||||||
} else if (QToolButton * cb = qobject_cast<QToolButton *>(widget)) {
|
} else if (QToolButton * cb = qobject_cast<QToolButton *>(widget)) {
|
||||||
disconnect(cb, SIGNAL(clicked()), this, function);
|
disconnect(cb, SIGNAL(clicked()), this, function);
|
||||||
|
} else if (qobject_cast<QLabel *>(widget)) {
|
||||||
|
// read only
|
||||||
|
} else if (qobject_cast<QProgressBar *>(widget)) {
|
||||||
|
// read only
|
||||||
} else {
|
} 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) {
|
if (result) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} 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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user