mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-28 04:54:13 -04:00
Massive UI revamping (v7): added channels
This commit is contained in:
@@ -92,6 +92,11 @@ void FeatureUISet::deleteFeature(int featureIndex)
|
||||
m_featureInstanceRegistrations.removeAt(featureIndex);
|
||||
m_featureSet->removeFeatureInstanceAt(featureIndex);
|
||||
}
|
||||
|
||||
// Renumerate
|
||||
for (int i = 0; i < m_featureInstanceRegistrations.count(); i++) {
|
||||
m_featureInstanceRegistrations.at(i).m_gui->setIndex(i);
|
||||
}
|
||||
}
|
||||
|
||||
const Feature *FeatureUISet::getFeatureAt(int featureIndex) const
|
||||
@@ -237,4 +242,9 @@ void FeatureUISet::handleClosingFeatureGUI(FeatureGUI *featureGUI)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Renumerate
|
||||
for (int i = 0; i < m_featureInstanceRegistrations.count(); i++) {
|
||||
m_featureInstanceRegistrations.at(i).m_gui->setIndex(i);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user