Skip to content

Commit

Permalink
Merge branch 'std-update' of https://github.com/kactus2/kactus2dev in…
Browse files Browse the repository at this point in the history
…to std-update
  • Loading branch information
hagantsa committed Nov 28, 2023
2 parents 1349bb8 + 53fa109 commit 0fad6f8
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <editors/ComponentEditor/memoryMaps/SingleAddressBlockEditor.h>
#include <KactusAPI/include/RegisterInterface.h>
#include <KactusAPI/include/AddressBlockInterface.h>
#include <KactusAPI/include/FieldInterface.h>
#include <editors/ComponentEditor/memoryMaps/memoryMapsVisualizer/memorymapsvisualizer.h>
#include <editors/ComponentEditor/memoryMaps/memoryMapsVisualizer/addressblockgraphitem.h>
#include <editors/ComponentEditor/visualization/memoryvisualizationitem.h>
Expand Down Expand Up @@ -131,10 +132,12 @@ void ComponentEditorAddrBlockItem::createChild( int index )
QSharedPointer<Register> reg = regmodel.dynamicCast<Register>();
if (reg)
{
QSharedPointer<ComponentEditorRegisterItem> regItem(new ComponentEditorRegisterItem(reg,
RegisterInterface* regInterface = blockInterface_->getSubInterface();

QSharedPointer<ComponentEditorRegisterItem> regItem(new ComponentEditorRegisterItem(reg,
addrBlock_->getRegisterData(), model_, libHandler_, component_, parameterFinder_, expressionFormatter_,
referenceCounter_, expressionParser_, addressBlockValidator_->getRegisterValidator(),
blockInterface_->getSubInterface(), this));
regInterface, this));

connect(this, SIGNAL(registerNameChanged(QString const&, QString const&)),
regItem.data(), SIGNAL(registerNameChanged(QString const&, QString const&)), Qt::UniqueConnection);
Expand All @@ -148,8 +151,9 @@ void ComponentEditorAddrBlockItem::createChild( int index )

if (reg->getFields()->isEmpty())
{
QSharedPointer<Field> newField (new Field());
reg->getFields()->append(newField);
FieldInterface* fieldInterface = regInterface->getSubInterface();
fieldInterface->setFields(reg->getFields());
fieldInterface->addField(0);

regItem->createChild(0);
}
Expand Down

0 comments on commit 0fad6f8

Please sign in to comment.