Skip to content
Snippets Groups Projects
Commit 29377398 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

merge fcts

parent b57c57e4
No related branches found
No related tags found
1 merge request!2211MaskEditorToolpanel now using DoubleSpinBox (#869...)
......@@ -144,16 +144,9 @@ void MaskEditorToolpanel::setCurrentMaskItem(MaskItem* maskItem)
GUI::Util::Layout::clearLayout(m_editor_layout);
m_currentMaskItem = maskItem;
createMaskEditorUI();
}
void MaskEditorToolpanel::createMaskEditorUI()
{
if (!m_currentMaskItem)
return;
auto* maskItem = m_currentMaskItem; // shorthand
// -- mask value (only if not RoI)
if (!dynamic_cast<RegionOfInterestItem*>(maskItem)) {
const auto maskValueGetter = [maskItem] { return maskItem->maskValue(); };
......
......@@ -58,9 +58,6 @@ private:
void addMaskCheckBox(const QString& title, std::function<bool()> getter,
std::function<void(bool)> setter);
//! Creates the UI to edit the current mask's properties
void createMaskEditorUI();
QListView* m_listView;
MaskContainerModel* m_maskContainerModel;
QFormLayout* m_editor_layout;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment