| 62 | } |
| 63 | |
| 64 | QVariant ObjectEnumModel::metaData(const QModelIndex &index, const QMetaEnum &enumerator, |
| 65 | int role) const |
| 66 | { |
| 67 | if (role == Qt::DisplayRole) { |
| 68 | if (index.column() == 0) |
| 69 | return QString::fromLatin1(enumerator.name()); |
| 70 | if (index.column() == 1) |
| 71 | return tr("%n element(s)", "", enumerator.keyCount()); |
| 72 | } |
| 73 | return QVariant(); |
| 74 | } |
| 75 | |
| 76 | QString ObjectEnumModel::columnHeader(int index) const |
| 77 | { |
no test coverage detected