- // A rare case when plugin was not loaded.
- if(!myFeature)
- return false;
- DataPtr aData = myFeature->data();
- AttributeStringPtr aStringAttr = aData->string(attributeID());
- QString aCaseId = QString::fromStdString(aStringAttr->value());
- int idx = myCaseIds.indexOf(aCaseId);
- if (idx == -1)
- return false;
- bool isSignalsBlocked = myToolBox->blockSignals(true);
- myToolBox->setCurrentIndex(idx);
- myToolBox->blockSignals(isSignalsBlocked);
- return true;
+ ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId, theIcon);
+ QFrame* aFrame = dynamic_cast<QFrame*>(thePage);
+ myToolBox->addItem(aFrame, theName, theIcon );
+ return myToolBox->count();