Utility functions for livery

This commit is contained in:
Klaus Basan
2020-06-03 04:44:19 +02:00
committed by Mat Sutcliffe
parent 6fc3d55d9a
commit 89c241b2e7
4 changed files with 21 additions and 2 deletions

View File

@@ -71,8 +71,13 @@ namespace BlackMisc
return this->getCombinedCode() % (
this->getDescription().isEmpty() ?
QString() :
(u' ' % this->getDescription())
);
(u' ' % this->getDescription()));
}
QString CLivery::getCombinedCodePlusId() const
{
return this->getCombinedCode() %
this->getDbKeyAsStringInParentheses(" ");
}
QString CLivery::getCombinedCodePlusInfoAndId() const