summaryrefslogtreecommitdiffstats
path: root/qt-ui/modeldelegates.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 14:15:19 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 14:39:30 +0000
commit8856417b2fb783ad3e8dcf95ddc9292cc1c5ba52 (patch)
treecd386687738935a5f901c376d3631b99444a7265 /qt-ui/modeldelegates.cpp
parent0c3f13d128f366b036a77dfd2d195cbcac8547ba (diff)
downloadsubsurface-8856417b2fb783ad3e8dcf95ddc9292cc1c5ba52.tar.gz
Allow translation of the cylinder use strings for the UI
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r--qt-ui/modeldelegates.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index 85be9ba62..9720e3f9e 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -1,10 +1,11 @@
#include "modeldelegates.h"
-#include "../dive.h"
-#include "../divelist.h"
+#include "dive.h"
+#include "divelist.h"
#include "starwidget.h"
#include "models.h"
#include "diveplanner.h"
#include "simplewidgets.h"
+#include "gettextfromc.h"
#include <QtDebug>
#include <QPainter>
@@ -286,7 +287,7 @@ QWidget *TankUseDelegate::createEditor(QWidget * parent, const QStyleOptionViewI
{
QComboBox *comboBox = new QComboBox(parent);
for (int i = 0; i < NUM_GAS_USE; i++)
- comboBox->addItem(QString(cylinderuse_text[i]));
+ comboBox->addItem(gettextFromC::instance()->trGettext(cylinderuse_text[i]));
return comboBox;
}