| 448 | } |
| 449 | |
| 450 | Qt::ItemFlags BreakpointModel::flags(const QModelIndex &index) const |
| 451 | { |
| 452 | /* FIXME: all this logic must be in item */ |
| 453 | if (!index.isValid()) |
| 454 | return Qt::NoItemFlags; |
| 455 | |
| 456 | if (index.column() == 0) |
| 457 | return static_cast<Qt::ItemFlags>( |
| 458 | Qt::ItemIsEnabled | Qt::ItemIsSelectable |
| 459 | | Qt::ItemIsEditable | Qt::ItemIsUserCheckable); |
| 460 | |
| 461 | if (index.column() == Breakpoint::ConditionColumn) |
| 462 | return static_cast<Qt::ItemFlags>( |
| 463 | Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable); |
| 464 | |
| 465 | return static_cast<Qt::ItemFlags>(Qt::ItemIsEnabled | Qt::ItemIsSelectable); |
| 466 | } |
| 467 | |
| 468 | QModelIndex BreakpointModel::breakpointIndex(KDevelop::Breakpoint* b, int column) |
| 469 | { |