mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
cleanup: remove conditional compilation in cylindermodel.cpp
Parts of the code were not compiled on mobile, because they used the undo-command infrastructure. However, since mobile now also compiles that, we might as well remove the conditional compilation. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e2f77f9238
commit
4d5f25ccf4
1 changed files with 0 additions and 4 deletions
|
@ -471,11 +471,9 @@ bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, in
|
||||||
free_cylinder(copy);
|
free_cylinder(copy);
|
||||||
dataChanged(index, index);
|
dataChanged(index, index);
|
||||||
} else {
|
} else {
|
||||||
#ifndef SUBSURFACE_MOBILE
|
|
||||||
// On the EquipmentTab - place an editCylinder command.
|
// On the EquipmentTab - place an editCylinder command.
|
||||||
int count = Command::editCylinder(index.row(), cyl, type, false);
|
int count = Command::editCylinder(index.row(), cyl, type, false);
|
||||||
emit divesEdited(count);
|
emit divesEdited(count);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -709,7 +707,6 @@ void CylindersModel::clearTempCyl()
|
||||||
|
|
||||||
void CylindersModel::commitTempCyl(int row)
|
void CylindersModel::commitTempCyl(int row)
|
||||||
{
|
{
|
||||||
#ifndef SUBSURFACE_MOBILE
|
|
||||||
if (tempRow < 0)
|
if (tempRow < 0)
|
||||||
return;
|
return;
|
||||||
if (row != tempRow)
|
if (row != tempRow)
|
||||||
|
@ -728,7 +725,6 @@ void CylindersModel::commitTempCyl(int row)
|
||||||
}
|
}
|
||||||
free_cylinder(tempCyl);
|
free_cylinder(tempCyl);
|
||||||
tempRow = -1;
|
tempRow = -1;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CylindersModelFiltered::CylindersModelFiltered(QObject *parent) : QSortFilterProxyModel(parent),
|
CylindersModelFiltered::CylindersModelFiltered(QObject *parent) : QSortFilterProxyModel(parent),
|
||||||
|
|
Loading…
Add table
Reference in a new issue