mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
Merge branch 'thread/OP-1178_OPLink_Configuration' into rel-14.01
This commit is contained in:
commit
e14acffd5c
@ -53,7 +53,6 @@ ConfigPipXtremeWidget::ConfigPipXtremeWidget(QWidget *parent) : ConfigTaskWidget
|
||||
} else {
|
||||
qDebug() << "Error: Object is unknown (OPLinkSettings).";
|
||||
}
|
||||
autoLoadWidgets();
|
||||
Core::Internal::GeneralSettings *settings = pm->getObject<Core::Internal::GeneralSettings>();
|
||||
if (!settings->useExpertMode()) {
|
||||
m_oplink->Apply->setVisible(false);
|
||||
@ -114,7 +113,7 @@ ConfigPipXtremeWidget::ConfigPipXtremeWidget(QWidget *parent) : ConfigTaskWidget
|
||||
|
||||
// Request and update of the setting object.
|
||||
settingsUpdated = false;
|
||||
|
||||
autoLoadWidgets();
|
||||
disableMouseWheelEvents();
|
||||
}
|
||||
|
||||
|
@ -811,6 +811,8 @@ void ConfigTaskWidget::connectWidgetUpdatesToSlot(QWidget *widget, const char *f
|
||||
connect(cb, SIGNAL(valueChanged(int)), this, function, Qt::UniqueConnection);
|
||||
} else if (QDoubleSpinBox * cb = qobject_cast<QDoubleSpinBox *>(widget)) {
|
||||
connect(cb, SIGNAL(valueChanged(double)), this, function, Qt::UniqueConnection);
|
||||
} else if (QLineEdit * cb = qobject_cast<QLineEdit *>(widget)) {
|
||||
connect(cb, SIGNAL(textChanged(QString)), this, function, Qt::UniqueConnection);
|
||||
} else if (QCheckBox * cb = qobject_cast<QCheckBox *>(widget)) {
|
||||
connect(cb, SIGNAL(stateChanged(int)), this, function, Qt::UniqueConnection);
|
||||
} else if (QPushButton * cb = qobject_cast<QPushButton *>(widget)) {
|
||||
@ -837,6 +839,8 @@ void ConfigTaskWidget::disconnectWidgetUpdatesToSlot(QWidget *widget, const char
|
||||
disconnect(cb, SIGNAL(valueChanged(int)), this, function);
|
||||
} else if (QDoubleSpinBox * cb = qobject_cast<QDoubleSpinBox *>(widget)) {
|
||||
disconnect(cb, SIGNAL(valueChanged(double)), this, function);
|
||||
}else if (QLineEdit * cb = qobject_cast<QLineEdit *>(widget)) {
|
||||
disconnect(cb, SIGNAL(textChanged(double)), this, function);
|
||||
} else if (QCheckBox * cb = qobject_cast<QCheckBox *>(widget)) {
|
||||
disconnect(cb, SIGNAL(stateChanged(int)), this, function);
|
||||
} else if (QPushButton * cb = qobject_cast<QPushButton *>(widget)) {
|
||||
|
Loading…
Reference in New Issue
Block a user