Also translate tab headers

After the restyle of the maintab code, the translation of some tab titles went
missing. Corrected here.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-04-13 20:23:07 +02:00 committed by Dirk Hohndel
parent 540b3548b9
commit b809019c7a

View file

@ -46,13 +46,13 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
ui.setupUi(this);
extraWidgets << new TabDiveExtraInfo();
ui.tabWidget->addTab(extraWidgets.last(), "Extra Info");
ui.tabWidget->addTab(extraWidgets.last(), tr("Extra Info"));
extraWidgets << new TabDiveInformation();
ui.tabWidget->addTab(extraWidgets.last(), "Information");
ui.tabWidget->addTab(extraWidgets.last(), tr("Information"));
extraWidgets << new TabDiveStatistics();
ui.tabWidget->addTab(extraWidgets.last(), "Statistics");
ui.tabWidget->addTab(extraWidgets.last(), tr("Statistics"));
extraWidgets << new TabDivePhotos();
ui.tabWidget->addTab(extraWidgets.last(), "Photos");
ui.tabWidget->addTab(extraWidgets.last(), tr("Photos"));
ui.dateEdit->setDisplayFormat(prefs.date_format);