| 85 | } |
| 86 | |
| 87 | QMap<int, QVariant> TranslationsModel::itemData(const QModelIndex &index) const |
| 88 | { |
| 89 | auto data = QAbstractTableModel::itemData(index); |
| 90 | if (hasIndex(index.row(), index.column(), index.parent())) { |
| 91 | if (index.column() == 3) |
| 92 | data[IsOverriddenRole] = m_nodes.at(index.row()).isOverridden; |
| 93 | } |
| 94 | return data; |
| 95 | } |
| 96 | |
| 97 | void TranslationsModel::resetTranslations(const QItemSelection &selection) |
| 98 | { |