From 55ac07f6f69c90bb06b6484233bf671ea60823a9 Mon Sep 17 00:00:00 2001 From: Oliver Schwaneberg Date: Thu, 10 May 2018 17:35:30 +0200 Subject: [PATCH] Corrected file name "weigthsysteminfomodel" to "weightsysteminfomodel" Signed-off-by: Oliver Schwaneberg --- desktop-widgets/mainwindow.cpp | 2 +- desktop-widgets/modeldelegates.cpp | 2 +- qt-models/CMakeLists.txt | 2 +- qt-models/weightmodel.cpp | 4 ++-- .../{weigthsysteminfomodel.cpp => weightsysteminfomodel.cpp} | 2 +- .../{weigthsysteminfomodel.h => weightsysteminfomodel.h} | 0 6 files changed, 6 insertions(+), 6 deletions(-) rename qt-models/{weigthsysteminfomodel.cpp => weightsysteminfomodel.cpp} (98%) rename qt-models/{weigthsysteminfomodel.h => weightsysteminfomodel.h} (100%) diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 28366a8f1..beaf3227e 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -33,7 +33,7 @@ #include "desktop-widgets/printdialog.h" #endif #include "qt-models/tankinfomodel.h" -#include "qt-models/weigthsysteminfomodel.h" +#include "qt-models/weightsysteminfomodel.h" #include "qt-models/yearlystatisticsmodel.h" #include "qt-models/diveplannermodel.h" #include "qt-models/cylindermodel.h" diff --git a/desktop-widgets/modeldelegates.cpp b/desktop-widgets/modeldelegates.cpp index 871033ebb..edf71f410 100644 --- a/desktop-widgets/modeldelegates.cpp +++ b/desktop-widgets/modeldelegates.cpp @@ -8,7 +8,7 @@ #include "desktop-widgets/starwidget.h" #include "profile-widget/profilewidget2.h" #include "qt-models/tankinfomodel.h" -#include "qt-models/weigthsysteminfomodel.h" +#include "qt-models/weightsysteminfomodel.h" #include "qt-models/weightmodel.h" #include "qt-models/divetripmodel.h" #include "core/qthelper.h" 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 similarity index 98% rename from qt-models/weigthsysteminfomodel.cpp rename to 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 similarity index 100% rename from qt-models/weigthsysteminfomodel.h rename to qt-models/weightsysteminfomodel.h