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

MaskContainerModel rm some unused fcts

parent e43d5b2b
No related branches found
No related tags found
1 merge request!2181rm many unused fcts, detected with xunused
Pipeline #121392 canceled
This commit is part of merge request !2181. Comments created here will be created in the context of that merge request.
......@@ -60,15 +60,6 @@ void MaskContainerModel::insertMask(int row, MaskItem* item)
QAbstractListModel::endInsertRows();
}
void MaskContainerModel::maskToModel(MaskItem* item)
{
qsizetype row = m_maskContItem->size() - 1;
QAbstractListModel::beginInsertRows(m_maskContItem->rootIndex, row, row);
m_maskContItem->addMaskItem(item);
QAbstractListModel::endInsertRows();
}
//! Move mask to a given row
void MaskContainerModel::moveMask(int from_row, int to_row)
{
......@@ -91,15 +82,6 @@ void MaskContainerModel::removeMask(MaskItem* item)
removeMaskAt(row);
}
RegionOfInterestItem* MaskContainerModel::regionOfInterestItem() const
{
for (MaskItem* maskItem : m_maskContItem->maskItems())
if (auto* reg = dynamic_cast<RegionOfInterestItem*>(maskItem))
return reg;
return nullptr;
}
QModelIndex MaskContainerModel::indexOfItem(const MaskRoot* item) const
{
if (const auto* ii = dynamic_cast<const MaskItem*>(item)) {
......
......@@ -44,8 +44,6 @@ public:
void insertMask(int row, MaskItem* item);
void maskToModel(MaskItem* item);
void removeMask(MaskItem* item);
//! Removes all masks
......@@ -57,8 +55,6 @@ public:
QModelIndex indexOfItem(const MaskRoot* item) const; // TODO: change this to MaskItem*
MaskItem* itemForIndex(const QModelIndex& index) const;
RegionOfInterestItem* regionOfInterestItem() const;
QItemSelectionModel* maskSelectionModel() { return m_selectionModel.get(); }
MaskContainerItem* maskContItem() { return m_maskContItem; }
......
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