Maintain a vector of down casted pin widget pointers in the QFP widget
This commit is contained in:
@@ -60,6 +60,7 @@ QuadFlatPackageWidget::QuadFlatPackageWidget(
|
|||||||
for (const auto& [targetPinNumber, targetPinDescriptor]: targetVariant.pinDescriptorsByNumber) {
|
for (const auto& [targetPinNumber, targetPinDescriptor]: targetVariant.pinDescriptorsByNumber) {
|
||||||
auto* pinWidget = new PinWidget(targetPinDescriptor, targetVariant, insightWorker, this);
|
auto* pinWidget = new PinWidget(targetPinDescriptor, targetVariant, insightWorker, this);
|
||||||
this->pinWidgets.push_back(pinWidget);
|
this->pinWidgets.push_back(pinWidget);
|
||||||
|
TargetPackageWidget::pinWidgets.push_back(pinWidget);
|
||||||
|
|
||||||
if (targetPinNumber <= pinCountPerLayout) {
|
if (targetPinNumber <= pinCountPerLayout) {
|
||||||
this->leftPinLayout->addWidget(pinWidget, 0, Qt::AlignmentFlag::AlignRight);
|
this->leftPinLayout->addWidget(pinWidget, 0, Qt::AlignmentFlag::AlignRight);
|
||||||
|
|||||||
@@ -34,5 +34,8 @@ namespace Bloom::Widgets::InsightTargetWidgets::Qfp
|
|||||||
QHBoxLayout* bottomPinLayout = nullptr;
|
QHBoxLayout* bottomPinLayout = nullptr;
|
||||||
QVBoxLayout* leftPinLayout = nullptr;
|
QVBoxLayout* leftPinLayout = nullptr;
|
||||||
BodyWidget* bodyWidget = nullptr;
|
BodyWidget* bodyWidget = nullptr;
|
||||||
|
|
||||||
|
std::vector<PinWidget*> pinWidgets;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user