summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Oliver Schwaneberg <oliver.schwaneberg@gmail.com>2018-05-10 17:35:30 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-05-11 02:23:51 +0300
commit55ac07f6f69c90bb06b6484233bf671ea60823a9 (patch)
tree44e6eb5e13c30c611e874263115fb91548b78087 /qt-models
parent67f96ec06c45bf3a1e349c17108777e959efaa3b (diff)
downloadsubsurface-55ac07f6f69c90bb06b6484233bf671ea60823a9.tar.gz
Corrected file name "weigthsysteminfomodel" to "weightsysteminfomodel"
Signed-off-by: Oliver Schwaneberg <oliver.schwaneberg@gmail.com>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/CMakeLists.txt2
-rw-r--r--qt-models/weightmodel.cpp4
-rw-r--r--qt-models/weightsysteminfomodel.cpp (renamed from qt-models/weigthsysteminfomodel.cpp)2
-rw-r--r--qt-models/weightsysteminfomodel.h (renamed from qt-models/weigthsysteminfomodel.h)0
4 files changed, 4 insertions, 4 deletions
diff --git a/qt-models/CMakeLists.txt b/qt-models/CMakeLists.txt
index e7f6ec01e..dc840e059 100644
--- a/qt-models/CMakeLists.txt
+++ b/qt-models/CMakeLists.txt
@@ -19,7 +19,7 @@ set(SUBSURFACE_DESKTOP_MODELS_LIB_SRCS
treemodel.cpp
cylindermodel.cpp
yearlystatisticsmodel.cpp
- weigthsysteminfomodel.cpp
+ weightsysteminfomodel.cpp
weightmodel.cpp
filtermodels.cpp
divecomputermodel.cpp
diff --git a/qt-models/weightmodel.cpp b/qt-models/weightmodel.cpp
index 8dd9b0223..227bb7be0 100644
--- a/qt-models/weightmodel.cpp
+++ b/qt-models/weightmodel.cpp
@@ -4,7 +4,7 @@
#include "core/gettextfromc.h"
#include "core/metrics.h"
#include "core/helpers.h"
-#include "qt-models/weigthsysteminfomodel.h"
+#include "qt-models/weightsysteminfomodel.h"
WeightModel::WeightModel(QObject *parent) : CleanerTableModel(parent),
changed(false),
@@ -103,7 +103,7 @@ bool WeightModel::setData(const QModelIndex &index, const QVariant &value, int r
switch (index.column()) {
case TYPE:
if (!value.isNull()) {
- //TODO: C-function weigth_system_set_description ?
+ //TODO: C-function weight_system_set_description ?
if (!ws->description || gettextFromC::instance()->tr(ws->description) != vString) {
// loop over translations to see if one matches
int i = -1;
diff --git a/qt-models/weigthsysteminfomodel.cpp b/qt-models/weightsysteminfomodel.cpp
index 608a70e56..08fecec5d 100644
--- a/qt-models/weigthsysteminfomodel.cpp
+++ b/qt-models/weightsysteminfomodel.cpp
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
-#include "qt-models/weigthsysteminfomodel.h"
+#include "qt-models/weightsysteminfomodel.h"
#include "core/dive.h"
#include "core/metrics.h"
#include "core/gettextfromc.h"
diff --git a/qt-models/weigthsysteminfomodel.h b/qt-models/weightsysteminfomodel.h
index 98c11d814..98c11d814 100644
--- a/qt-models/weigthsysteminfomodel.h
+++ b/qt-models/weightsysteminfomodel.h