mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T210, boolToEnabledDisabled
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user