summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/breakhandler.h
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2011-05-11 16:24:04 +0200
committerhjk <qtc-committer@nokia.com>2011-05-11 16:25:09 +0200
commitf5601d7b1b01ad3b1a39353bb8ef942f1f92cad6 (patch)
tree3ef51bd701423a6ee3aa0d76c8bed9502574892d /src/plugins/debugger/breakhandler.h
parent6bcb4dbd5e6c56283cf9bb93fd5cfffc16d394b8 (diff)
downloadqt-creator-f5601d7b1b01ad3b1a39353bb8ef942f1f92cad6.tar.gz
debugger: derive breakpoint model from QAbstract*, not QTable*
Preparation for proper mulptiple breakpoint display
Diffstat (limited to 'src/plugins/debugger/breakhandler.h')
-rw-r--r--src/plugins/debugger/breakhandler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/debugger/breakhandler.h b/src/plugins/debugger/breakhandler.h
index 09bfd60d12..d7ed2798a4 100644
--- a/src/plugins/debugger/breakhandler.h
+++ b/src/plugins/debugger/breakhandler.h
@@ -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);