7 #ifndef GEOMETRY_MODEL_H 8 #define GEOMETRY_MODEL_H 13 #include "WindowModelBase.h" 24 virtual QVariant
data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
34 int rowToBeHighlighted ()
const;
36 int m_rowToBeHighlighted;
37 QString m_pointIdentifier;
40 QHash<int, bool> m_ambiguousRows;
43 #endif // GEOMETRY_MODEL_H void setCurrentPointIdentifier(const QString &pointIdentifier)
Set the point identifier to be highlighted. Value is empty for no highlighting.
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Override for special processing.
void setPotentialExportAmbiguity(const QVector< bool > &isPotentialExportAmbiguity)
Remember which rows could have ambiguities during export - these will be highlighted.
GeometryModel()
Single constructor.
Model that adds row highlighting according to the currently select point identifier.