diff options
Diffstat (limited to 'src/designer/src/components/objectinspector/objectinspectormodel.cpp')
-rw-r--r-- | src/designer/src/components/objectinspector/objectinspectormodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/designer/src/components/objectinspector/objectinspectormodel.cpp b/src/designer/src/components/objectinspector/objectinspectormodel.cpp index c539f8f3d..3f8c6a665 100644 --- a/src/designer/src/components/objectinspector/objectinspectormodel.cpp +++ b/src/designer/src/components/objectinspector/objectinspectormodel.cpp @@ -463,7 +463,7 @@ namespace qdesigner_internal { const QVariant rc = QStandardItemModel::data(index, role); // Return <noname> if the string is empty for the display role // only (else, editing starts with <noname>). - if (role == Qt::DisplayRole && rc.type() == QVariant::String) { + if (role == Qt::DisplayRole && rc.metaType().id() == QMetaType::QString) { const QString s = rc.toString(); if (s.isEmpty()) { static const QString noName = QCoreApplication::translate("ObjectInspectorModel", "<noname>"); |