Browse Source

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

tags/upstream/1.2
Dashie der otter 3 years ago
parent
commit
b267585d35
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
2 changed files with 5 additions and 1 deletions
  1. 1
    1
      Prefs.cpp
  2. 4
    0
      main.cpp

+ 1
- 1
Prefs.cpp View File

@@ -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
- 0
main.cpp View File

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