From 500b024aa0f65cd1aa489ca72cff0575c9f11c52 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 8 Feb 2024 17:50:48 +0300 Subject: [PATCH] UI: Remove 'v' from version text --- src/ui/form/controls/appinforow.cpp | 2 +- src/ui/manager/logger.cpp | 2 +- src/ui_bin/main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/form/controls/appinforow.cpp b/src/ui/form/controls/appinforow.cpp index e6cb8f87..474193a2 100644 --- a/src/ui/form/controls/appinforow.cpp +++ b/src/ui/form/controls/appinforow.cpp @@ -61,7 +61,7 @@ void AppInfoRow::refreshAppInfoVersion(const QString &appPath, AppInfoCache *app m_lineAppPath->setToolTip(appPath); m_labelAppProductName->setVisible(!appInfo.productName.isEmpty()); - m_labelAppProductName->setText(appInfo.productName + " v" + appInfo.productVersion); + m_labelAppProductName->setText(appInfo.productName + ' ' + appInfo.productVersion); m_labelAppCompanyName->setVisible(!appInfo.companyName.isEmpty()); m_labelAppCompanyName->setText(appInfo.companyName); diff --git a/src/ui/manager/logger.cpp b/src/ui/manager/logger.cpp index 0363406d..de0c218e 100644 --- a/src/ui/manager/logger.cpp +++ b/src/ui/manager/logger.cpp @@ -103,7 +103,7 @@ void Logger::setPath(const QString &path) QString Logger::getFileTitle() const { - return QLatin1String(APP_NAME) + " v" + APP_VERSION_STR + APP_VERSION_BUILD_STR + return QLatin1String(APP_NAME) + ' ' + APP_VERSION_STR + APP_VERSION_BUILD_STR + (isService() ? " Service" : (hasService() ? " Client" : QString())); } diff --git a/src/ui_bin/main.cpp b/src/ui_bin/main.cpp index 8466a1c5..5311fcc1 100644 --- a/src/ui_bin/main.cpp +++ b/src/ui_bin/main.cpp @@ -85,7 +85,7 @@ int main(int argc, char *argv[]) QApplication app(argc, argv); QApplication::setApplicationName(APP_NAME); QApplication::setApplicationVersion(APP_VERSION_STR); - QApplication::setApplicationDisplayName(QLatin1String(APP_NAME) + " v" + APP_VERSION_STR + QApplication::setApplicationDisplayName(QLatin1String(APP_NAME) + ' ' + APP_VERSION_STR + APP_VERSION_BUILD_STR + (settings.isPortable() ? QLatin1String(" Portable") : QString()));