Browse Source

Do not translate in prefs; Use conditional code for older Qt 5.x

dynamic_words_list
squeaky otter 5 years ago
parent
commit
b267585d35
Signed by: dashie GPG Key ID: C2D57B325840B755
  1. 2
      Prefs.cpp
  2. 4
      main.cpp

2
Prefs.cpp

@ -69,7 +69,7 @@ Prefs::Prefs(Morse *morse, QWidget *parent) :
if ((modeLayout = mode->getPrefsLayout()) != 0) {
QWidget *modeWidget = new QWidget();
modeWidget->setLayout(modeLayout);
tabWidget->addTab(modeWidget, trUtf8(qUtf8Printable(mode->name())));
tabWidget->addTab(modeWidget, mode->name());
}
}

4
main.cpp

@ -29,7 +29,11 @@ QString findTranslations() {
foreach(const QString &fn, searchDirs) {
QDir fic(fn);
if (fic.exists("cutecw_en.qm") && fic.isReadable()) {
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 1)
qDebug() << "found translations in" << fn;
#else
qInfo() << "found translations in" << fn;
#endif
return fn;
}
}

Loading…
Cancel
Save