mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Removed the unused add cylinder and add weigthsystem dialogs.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
3e51476d87
commit
134e20bdc2
10 changed files with 6 additions and 624 deletions
|
|
@ -159,7 +159,7 @@ int CylindersModel::rowCount(const QModelIndex& parent) const
|
|||
return rows;
|
||||
}
|
||||
|
||||
void CylindersModel::add(cylinder_t* cyl)
|
||||
void CylindersModel::add()
|
||||
{
|
||||
if (rows >= MAX_CYLINDERS) {
|
||||
return;
|
||||
|
|
@ -167,14 +167,6 @@ void CylindersModel::add(cylinder_t* cyl)
|
|||
|
||||
int row = rows;
|
||||
|
||||
cylinder_t& cylinder = current->cylinder[row];
|
||||
|
||||
cylinder.end.mbar = cyl->end.mbar;
|
||||
cylinder.start.mbar = cyl->start.mbar;
|
||||
cylinder.type.description = strdup(cyl->type.description);
|
||||
cylinder.type.size = cyl->type.size;
|
||||
cylinder.type.workingpressure = cyl->type.workingpressure;
|
||||
|
||||
beginInsertRows(QModelIndex(), row, row);
|
||||
rows++;
|
||||
endInsertRows();
|
||||
|
|
@ -326,18 +318,12 @@ QVariant WeightModel::headerData(int section, Qt::Orientation orientation, int r
|
|||
return ret;
|
||||
}
|
||||
|
||||
void WeightModel::add(weightsystem_t* weight)
|
||||
void WeightModel::add()
|
||||
{
|
||||
if (rows >= MAX_WEIGHTSYSTEMS)
|
||||
return;
|
||||
|
||||
int row = rows;
|
||||
|
||||
weightsystem_t *ws = ¤t->weightsystem[row];
|
||||
|
||||
ws->description = weight->description;
|
||||
ws->weight.grams = weight->weight.grams;
|
||||
|
||||
beginInsertRows(QModelIndex(), row, row);
|
||||
rows++;
|
||||
endInsertRows();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue