diff options
Diffstat (limited to 'examples/widgets/tools')
-rw-r--r-- | examples/widgets/tools/settingseditor/settingstree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/tools/settingseditor/settingstree.cpp b/examples/widgets/tools/settingseditor/settingstree.cpp index 04af8ce3b9..bcbf3744a5 100644 --- a/examples/widgets/tools/settingseditor/settingstree.cpp +++ b/examples/widgets/tools/settingseditor/settingstree.cpp @@ -214,7 +214,7 @@ void SettingsTree::updateChildItems(QTreeWidgetItem *parent) if (value.userType() == QMetaType::UnknownType) { child->setText(1, "Invalid"); } else { - if (value.type() == QVariant::String) { + if (value.typeId() == QMetaType::QString) { const QString stringValue = value.toString(); if (m_typeChecker->boolExp.match(stringValue).hasMatch()) { value.setValue(stringValue.compare("true", Qt::CaseInsensitive) == 0); |