50 #include "PropertyModel.hh" 54 for (
int i = 0; i < rowCount(); ++i)
56 const QModelIndex idx = index(i, 0);
57 const QString name = idx.data().toString();
58 if (name == propName)
return idx;
65 for (
int i = 0; i < rowCount(); ++i)
67 const QModelIndex idx = index(i, 0);
69 if (name == propName.toStdString())
return idx;
QModelIndex indexFromPlainPropName(const QString &propName) const
Returns the index of the property with the given name.
virtual PropertyInfo getPropertyInfo(const QModelIndex index) const =0
Returns the property info for the property with the given index.
QModelIndex indexFromFancyPropName(const QString &propName) const
Returns the index of the property with the given name.