Browse Source

Merge pull request #6933 from patrickelectric/3rd_lambda

ParameterManager: Use 3rd parameter in connect
QGC4.4
Don Gagne 7 years ago committed by GitHub
parent
commit
0c382c9ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/FactSystem/ParameterManager.cc

6
src/FactSystem/ParameterManager.cc

@ -868,13 +868,13 @@ void ParameterManager::_tryCacheHashLoad(int vehicleId, int componentId, QVarian @@ -868,13 +868,13 @@ void ParameterManager::_tryCacheHashLoad(int vehicleId, int componentId, QVarian
ani->setEndValue(1.0);
ani->setDuration(750);
connect(ani, &QVariantAnimation::valueChanged, [this](const QVariant &value) {
connect(ani, &QVariantAnimation::valueChanged, this, [this](const QVariant &value) {
_setLoadProgress(value.toDouble());
});
// Hide 500ms after animation finishes
connect(ani, &QVariantAnimation::finished, [this](){
QTimer::singleShot(500, [this]() {
connect(ani, &QVariantAnimation::finished, this, [this] {
QTimer::singleShot(500, [this] {
_setLoadProgress(0);
});
});

Loading…
Cancel
Save