debugger: derive breakpoint model from QAbstract*, not QTable*

Preparation for proper mulptiple breakpoint display
This commit is contained in:
hjk
2011-05-11 16:24:04 +02:00
parent 6bcb4dbd5e
commit f5601d7b1b
2 changed files with 19 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ namespace Internal {
class BreakpointMarker;
class BreakHandler : public QAbstractTableModel
class BreakHandler : public QAbstractItemModel
{
Q_OBJECT
@@ -167,6 +167,8 @@ private:
QVariant data(const QModelIndex &index, int role) const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
Qt::ItemFlags flags(const QModelIndex &index) const;
QModelIndex index(int row, int col, const QModelIndex &parent) const;
QModelIndex parent(const QModelIndex &parent) const;
bool isEngineRunning(BreakpointId id) const;
void setState(BreakpointId id, BreakpointState state);