From dc66eb3167efe2508b55ea0145a72593a7283431 Mon Sep 17 00:00:00 2001
From: Serhii Hadzhilov
Your %1 trial has expired. " - "" - "Buy now!
"; - Notice = Notice.arg(LicenseManager::getEditionName(activeEdition())); + Notice = "" + "Trial expired - " + "Buy now" + "
"; } else{ - Notice = "%1 day%3 of " - "your %2 trial remain%5. " - "Buy now!" + Notice = "
" + "Trial expires in %1 day%2 - " + "Buy now" "
"; time_t daysLeft = m_serialKey.daysLeft(::time(0)); - Notice = Notice - .arg (daysLeft) - .arg (LicenseManager::getEditionName(activeEdition())) - .arg ((daysLeft == 1) ? "" : "s") - .arg ((daysLeft == 1) ? "s" : ""); + Notice = Notice.arg (daysLeft).arg ((daysLeft == 1) ? "" : "s"); } return Notice; @@ -206,18 +198,15 @@ LicenseManager::getTemporaryNotice() const QString Notice; if (m_serialKey.isExpired(::time(0))) { - Notice = "Your license has expired. " - "" - "Renew now!
"; + Notice = "" + "License expired - " + "Renew now" + "
"; } else if (m_serialKey.isExpiring(::time(0))) { - Notice = "%1 day%2 " - "before your license expires." - "Renew now!" + Notice = "
" + "License expires in %1 day%2 - " + "Renew now" "
"; time_t daysLeft = m_serialKey.daysLeft(::time(0)); diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index f02ca2462..e6216549f 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -151,7 +151,7 @@ MainWindow::MainWindow (AppConfig& appConfig, setMinimumSize(size()); #endif - m_trialWidget->hide(); + m_trialLabel->hide(); // hide padlock icon secureSocket(false); @@ -1129,11 +1129,11 @@ void MainWindow::InvalidLicense() void MainWindow::showLicenseNotice(const QString& notice) { - this->m_trialWidget->hide(); + this->m_trialLabel->hide(); if (!notice.isEmpty()) { this->m_trialLabel->setText(notice); - this->m_trialWidget->show(); + this->m_trialLabel->show(); } setWindowTitle (m_LicenseManager->activeEditionName()); diff --git a/src/gui/src/MainWindowBase.ui b/src/gui/src/MainWindowBase.ui index 79d3604e1..5091ee27b 100644 --- a/src/gui/src/MainWindowBase.ui +++ b/src/gui/src/MainWindowBase.ui @@ -27,57 +27,6 @@