Allow translation of the cylinder use strings for the UI

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-11-17 14:15:19 +00:00
parent 0c3f13d128
commit 8856417b2f
3 changed files with 9 additions and 7 deletions

View file

@ -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;
}