| 427 | } |
| 428 | |
| 429 | Qt::ItemFlags AccountList::flags(const QModelIndex &index) const |
| 430 | { |
| 431 | if (index.row() < 0 || index.row() >= rowCount(index) || !index.isValid()) |
| 432 | { |
| 433 | return Qt::NoItemFlags; |
| 434 | } |
| 435 | |
| 436 | return Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable; |
| 437 | } |
| 438 | |
| 439 | bool AccountList::setData(const QModelIndex &idx, const QVariant &value, int role) |
| 440 | { |