Add warning about expire and redesign warning/error popup

Fixes Github Issue #38
This commit is contained in:
Lars Toenning
2020-06-13 21:58:07 +02:00
committed by Mat Sutcliffe
parent 189bb15936
commit 1d4aa96e9b
7 changed files with 56 additions and 29 deletions

View File

@@ -97,6 +97,11 @@ namespace BlackConfig
return QDateTime::currentDateTime() > getEol();
}
int CBuildConfig::daysTillLifetimeExpiry()
{
return QDateTime::currentDateTime().daysTo(getEol());
}
const QString boolToYesNo(bool v)
{
return v ? QStringLiteral("yes") : QStringLiteral("no");

View File

@@ -109,6 +109,9 @@ namespace BlackConfig
//! Lifetime ended?
static bool isLifetimeExpired();
//! Days till lifetime end
static int daysTillLifetimeExpiry();
//! Vatsim client id
static int vatsimClientId(); // defined in buildconfig_gen.cpp.in