| 82 | } |
| 83 | |
| 84 | QVariant TreeItem::data(int column) const |
| 85 | { |
| 86 | switch (column) |
| 87 | { |
| 88 | case 0: // Name |
| 89 | return itemName; |
| 90 | case 1: // Action |
| 91 | return actionTypeToQString(itemAction); |
| 92 | case 2: // Type |
| 93 | return itemTypeToQString(itemType); |
| 94 | case 3: // Subtype |
| 95 | return itemSubtypeToQString(itemType, itemSubtype); |
| 96 | case 4: // Text |
| 97 | return itemText; |
| 98 | default: |
| 99 | return QVariant(); |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | TreeItem *TreeItem::parent() |
| 104 | { |
no test coverage detected