43 #include "PropertyModel.hh" 47 for (
int i = 0; i < rowCount(); ++i)
49 const QModelIndex idx = index(i, 0);
50 const QString name = idx.data().toString();
51 if (name == propName)
return idx;
58 for (
int i = 0; i < rowCount(); ++i)
60 const QModelIndex idx = index(i, 0);
62 if (name == propName.toStdString())
return idx;
virtual PropertyInfo getPropertyInfo(const QModelIndex index) const =0
Returns the property info for the property with the given index.
QModelIndex indexFromPlainPropName(const QString &propName) const
Returns the index of the property with the given name.
QModelIndex indexFromFancyPropName(const QString &propName) const
Returns the index of the property with the given name.