Skip to content

Commit

Permalink
Reset draw action when reloading world model
Browse files Browse the repository at this point in the history
  • Loading branch information
IKhonakhbeeva committed Oct 22, 2023
1 parent 2baf069 commit 229416c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class TWO_D_MODEL_EXPORT TwoDModelWidget : public QWidget

void setBackgroundMode();
void bringToFront();
void resetDrawAction();

QString editorId() const override;
bool supportsZooming() const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ void TwoDModelEngineFacade::init(const kitBase::EventsForKitPluginInterface &eve
}

mView->loadXmls(worldModel);
mView->resetDrawAction();

loadReadOnlyFlags(logicalModel);
QLOG_DEBUG() << "Reloading 2D world done";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,11 @@ void TwoDModelWidget::initPalette()
connect(imageTool, &QAction::triggered, this, [this](){ mUi->palette->unselect(); });
}

void TwoDModelWidget::resetDrawAction()
{
mUi->palette->unselect();
}

void TwoDModelWidget::initDetailsTab()
{
}
Expand Down

0 comments on commit 229416c

Please sign in to comment.