| 60 | } |
| 61 | |
| 62 | void AppItemModel::onAppChanged(const AppNode &node) |
| 63 | { |
| 64 | for(int i = 0; i < cache.count(); i++) |
| 65 | { |
| 66 | if(cache.at(i).id == node.id) |
| 67 | { |
| 68 | cache[i] = node; |
| 69 | emit dataChanged(index(i, 0), index(i, 0)); |
| 70 | break; |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | void AppItemModel::onAppRemoved(const uint32_t id) |
| 76 | { |