Ref T210, boolToEnabledDisabled

This commit is contained in:
Klaus Basan
2017-12-19 03:17:43 +01:00
parent 379357d5d5
commit 265869dc1f
2 changed files with 9 additions and 0 deletions

View File

@@ -44,6 +44,12 @@ namespace BlackMisc
return v ? "true" : "false";
}
QString boolToEnabledDisabled(bool v, bool i18n)
{
Q_UNUSED(i18n);
return v ? "enabled" : "disabled";
}
bool stringToBool(const QString &string)
{
QString s(string.trimmed().toLower());