1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-984 More refactorng.

This commit is contained in:
Fredrik Arvidsson 2014-01-01 23:03:20 +01:00
parent b244f8a3cd
commit 1ea13ba161
2 changed files with 3 additions and 9 deletions

View File

@ -954,7 +954,7 @@ void ConfigTaskWidget::connectWidgetUpdatesToSlot(QWidget *widget, const char *f
} else if (QPushButton * cb = qobject_cast<QPushButton *>(widget)) {
connect(cb, SIGNAL(clicked()), this, function);
} else {
qDebug() << __FUNCTION__ << "widget to uavobject relation not implemented" << widget->metaObject()->className();
qDebug() << __FUNCTION__ << "widget binding not implemented" << widget->metaObject()->className();
}
}
@ -983,7 +983,7 @@ void ConfigTaskWidget::disconnectWidgetUpdatesToSlot(QWidget *widget, const char
} else if (QPushButton * cb = qobject_cast<QPushButton *>(widget)) {
disconnect(cb, SIGNAL(clicked()), this, function);
} else {
qDebug() << __FUNCTION__ << "widget to uavobject relation not implemented" << widget->metaObject()->className();
qDebug() << __FUNCTION__ << "widget binding not implemented" << widget->metaObject()->className();
}
}
@ -1265,10 +1265,6 @@ bool ConfigTaskWidget::eventFilter(QObject *obj, QEvent *evt)
}
return QWidget::eventFilter(obj, evt);
}
/**
@}
@}
*/
WidgetBinding::WidgetBinding(QWidget *widget, UAVObject *object, UAVObjectField *field, int index, double scale, bool isLimited) :
ShadowWidgetBinding(widget, scale, isLimited)
@ -1280,7 +1276,6 @@ WidgetBinding::WidgetBinding(QWidget *widget, UAVObject *object, UAVObjectField
WidgetBinding::~WidgetBinding()
{
}
QString WidgetBinding::units() const
@ -1337,7 +1332,6 @@ ShadowWidgetBinding::ShadowWidgetBinding(QWidget *widget, double scale, bool isL
ShadowWidgetBinding::~ShadowWidgetBinding()
{
}
QWidget *ShadowWidgetBinding::widget() const

View File

@ -137,7 +137,7 @@ public:
void addReloadButton(QPushButton *button, int buttonGroup);
void addDefaultButton(QPushButton *button, int buttonGroup);
void addWidgetToDefaultReloadGroups(QWidget *widget, QList<int> *groups);
void addWidgetToReloadGroups(QWidget *widget, QList<int> *groups);
bool addShadowWidgetBinding(QWidget *masterWidget, QWidget *shadowWidget, double shadowScale = 1, bool shadowIsLimited = false);
bool addShadowWidgetBinding(QString object, QString field, QWidget *widget, int index = 0, double scale = 1, bool isLimited = false,