clear up debug codes
This commit is contained in:
parent
995b734334
commit
351f4e86ed
|
@ -2167,10 +2167,8 @@ Qt::ItemFlags WatchModel::flags(const QModelIndex &index) const
|
||||||
}
|
}
|
||||||
if (index.column() == 2) {
|
if (index.column() == 2) {
|
||||||
WatchVar* item = static_cast<WatchVar*>(index.internalPointer());
|
WatchVar* item = static_cast<WatchVar*>(index.internalPointer());
|
||||||
qDebug()<<item->name<<item->numChild<<item->type<<item->hasMore<<(item->numChild==0 && !item->hasMore && !item->type.isEmpty());
|
|
||||||
if (item->numChild==0 && !item->type.isEmpty())
|
if (item->numChild==0 && !item->type.isEmpty())
|
||||||
flags |= Qt::ItemIsEditable;
|
flags |= Qt::ItemIsEditable;
|
||||||
qDebug()<<flags;
|
|
||||||
}
|
}
|
||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue