forked from qt-creator/qt-creator
CMake: Also treat "yes" as true for boolean settings
Change-Id: I78426ec5b6b2cf0a1d4cca26202632b27e2036e9 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -35,7 +35,8 @@ namespace CMakeProjectManager {
|
|||||||
static bool isTrue(const QString &value)
|
static bool isTrue(const QString &value)
|
||||||
{
|
{
|
||||||
const QString lower = value.toLower();
|
const QString lower = value.toLower();
|
||||||
return lower == QStringLiteral("true") || lower == QStringLiteral("on") || lower == QStringLiteral("1");
|
return lower == QStringLiteral("true") || lower == QStringLiteral("on")
|
||||||
|
|| lower == QStringLiteral("1") || lower == QStringLiteral("yes");
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigModel::ConfigModel(QObject *parent) : QAbstractTableModel(parent)
|
ConfigModel::ConfigModel(QObject *parent) : QAbstractTableModel(parent)
|
||||||
|
|||||||
Reference in New Issue
Block a user