mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Allow translation of the cylinder use strings for the UI
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0c3f13d128
commit
8856417b2f
3 changed files with 9 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue