Skip to content

Commit

Permalink
make 'add car points' checkbox do something.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbehley committed Jan 2, 2020
1 parent 769c060 commit eabb4f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widget/Mainframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,12 @@ Mainframe::Mainframe() : mChangesSinceLastSave(false) {
std::cout << numSelectedInstances_ << " instances selected." << std::endl;
}

connect(ui.chkAddCarPoints, &QCheckBox::toggled,
[this](bool value) { ui.mViewportXYZ->setDrawingOption("add car points", value); });

ui.mViewportXYZ->setInstanceSelectionMode(checked);
});

connect(ui.chkAddCarPoints, &QCheckBox::toggled,
[this](bool value) { ui.mViewportXYZ->setDrawingOption("add car points", value); });

connect(ui.chkShowInstanceBoxes, &QCheckBox::toggled,
[this](bool value) { ui.mViewportXYZ->setDrawingOption("draw instance boxes", value); });

Expand Down

0 comments on commit eabb4f3

Please sign in to comment.