forked from qt-creator/qt-creator
Compile.
This commit is contained in:
@@ -162,7 +162,7 @@ QVariant WatchTableModel::data(const QModelIndex &idx, int role) const
|
|||||||
const QVariant &value = m_values.at(idx.row()).variant;
|
const QVariant &value = m_values.at(idx.row()).variant;
|
||||||
QString str = value.toString();
|
QString str = value.toString();
|
||||||
|
|
||||||
if (str.isEmpty() && QmlMetaType::isObject(value.userType())) {
|
if (str.isEmpty() && QmlMetaType::isQObject(value.userType())) {
|
||||||
QObject *o = QmlMetaType::toQObject(value);
|
QObject *o = QmlMetaType::toQObject(value);
|
||||||
if(o) {
|
if(o) {
|
||||||
QString objectName = o->objectName();
|
QString objectName = o->objectName();
|
||||||
|
|||||||
Reference in New Issue
Block a user