| 131 | } |
| 132 | |
| 133 | Qt::ItemFlags LoggingCategoryModel::flags(const QModelIndex &index) const |
| 134 | { |
| 135 | const auto baseFlags = QAbstractTableModel::flags(index); |
| 136 | if (index.column() == 2) // info not available in Qt < 5.5 |
| 137 | return baseFlags; |
| 138 | if (index.column() > 0) |
| 139 | return baseFlags | Qt::ItemIsUserCheckable; |
| 140 | return baseFlags; |
| 141 | } |
| 142 | |
| 143 | bool LoggingCategoryModel::setData(const QModelIndex &index, const QVariant &value, int role) |
| 144 | { |
no test coverage detected