summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-22 14:52:38 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-22 14:52:38 -0300
commit134e20bdc27f63c73ef8257dc357ae05642fece8 (patch)
tree54546b6fac535625676d14bbc05a0334acb6380a /qt-ui/models.cpp
parent3e51476d8757752ccfa908d54b4f2425d908c839 (diff)
downloadsubsurface-134e20bdc27f63c73ef8257dc357ae05642fece8.tar.gz
Removed the unused add cylinder and add weigthsystem dialogs.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 78763d11b..51e6f6d49 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -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 = &current->weightsystem[row];
-
- ws->description = weight->description;
- ws->weight.grams = weight->weight.grams;
-
beginInsertRows(QModelIndex(), row, row);
rows++;
endInsertRows();