aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/preferences/preferences_language.cpp2
-rw-r--r--desktop-widgets/usermanual.cpp2
-rw-r--r--desktop-widgets/usersurvey.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/desktop-widgets/preferences/preferences_language.cpp b/desktop-widgets/preferences/preferences_language.cpp
index 9de6efb8f..22b274a76 100644
--- a/desktop-widgets/preferences/preferences_language.cpp
+++ b/desktop-widgets/preferences/preferences_language.cpp
@@ -89,7 +89,7 @@ void PreferencesLanguage::syncSettings()
qPrefLanguage::set_time_format(ui->timeFormatEntry->currentText());
qPrefLanguage::set_date_format(ui->dateFormatEntry->currentText());
qPrefLanguage::set_date_format_short(ui->shortDateFormatEntry->text());
- uiLanguage(NULL);
+ initUiLanguage();
QString qDateTimeWeb = tr("These will be used as is. This might not be what you intended.\nSee http://doc.qt.io/qt-5/qdatetime.html#toString");
QRegExp tfillegalchars("[^hHmszaApPt\\s:;\\.,]");
diff --git a/desktop-widgets/usermanual.cpp b/desktop-widgets/usermanual.cpp
index 69e86864b..42ca4e0a7 100644
--- a/desktop-widgets/usermanual.cpp
+++ b/desktop-widgets/usermanual.cpp
@@ -64,7 +64,7 @@ UserManual::UserManual(QWidget *parent) : QDialog(parent)
QString searchPath = getSubsurfaceDataPath("Documentation");
if (searchPath.size()) {
// look for localized versions of the manual first
- QString lang = uiLanguage(NULL);
+ QString lang = getUiLanguage();
QString prefix = searchPath.append("/user-manual");
QFile manual(prefix + "_" + lang + ".html");
if (!manual.exists())
diff --git a/desktop-widgets/usersurvey.cpp b/desktop-widgets/usersurvey.cpp
index 326a51f9e..9f237abea 100644
--- a/desktop-widgets/usersurvey.cpp
+++ b/desktop-widgets/usersurvey.cpp
@@ -31,7 +31,7 @@ UserSurvey::UserSurvey(QWidget *parent) : QDialog(parent),
QString osArch = SubsurfaceSysInfo::currentCpuArchitecture();
os.append(QString("&osCpuArch=%1").arg(osArch));
}
- os.append(QString("&uiLang=%1").arg(uiLanguage(NULL)));
+ os.append(QString("&uiLang=%1").arg(getUiLanguage()));
os.append(QString("&uuid=%1").arg(getUUID()));
ui->system->setPlainText(getVersion());
}
@@ -46,7 +46,7 @@ QString UserSurvey::getVersion()
sysInfo.append(tr("\nCPU architecture: %1").arg(arch));
if (arch == "i386")
sysInfo.append(tr("\nOS CPU architecture: %1").arg(SubsurfaceSysInfo::currentCpuArchitecture()));
- sysInfo.append(tr("\nLanguage: %1").arg(uiLanguage(NULL)));
+ sysInfo.append(tr("\nLanguage: %1").arg(getUiLanguage()));
return sysInfo;
}