34 if ((
role == Qt::BackgroundRole) &&
35 !m_pointIdentifier.isEmpty () &&
36 (index.row () == m_rowToBeHighlighted)) {
45 (m_ambiguousRows.size () > 0) &&
54 return QStandardItemModel::data (index,
role);
57int GeometryModel::rowToBeHighlighted ()
const
60 <<
" rows=" << rowCount()
61 <<
" cols=" << columnCount();
63 for (
int row = 0;
row < rowCount();
row++) {
86 <<
" rows=" << rowCount()
87 <<
" cols=" << columnCount()
93 if (!m_pointIdentifier.isEmpty ()) {
96 m_rowToBeHighlighted = rowToBeHighlighted();
111 roles << Qt::BackgroundRole;
121 m_ambiguousRows.clear ();
124 m_ambiguousRows [
i] =
true;
const int INNER_RADIUS_MIN
const int NO_HIGHLIGHTED_ROW
log4cpp::Category * mainCat
GeometryModel()
Single constructor.
void setCurrentPointIdentifier(const QString &pointIdentifier)
Set the point identifier to be highlighted. Value is empty for no highlighting.
void setPotentialExportAmbiguity(const QVector< bool > &isPotentialExportAmbiguity)
Remember which rows could have ambiguities during export - these will be highlighted.
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Override for special processing.
static int columnBodyPointIdentifiers()
Hidden column that has the point identifiers.
#define LOG4CPP_INFO_S(logger)