diff options
author | hjk <qtc-committer@nokia.com> | 2010-05-03 19:12:52 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-05-04 18:00:10 +0200 |
commit | 15a595b429ee1d0a7d1defc8397d8531164bc240 (patch) | |
tree | df851da08b812a4d472d389a787bd5290b8c39f3 /src/plugins/debugger/moduleshandler.cpp | |
parent | c4aafc354a73754a2f528c7da64a03e92087d26b (diff) | |
download | qt-creator-15a595b429ee1d0a7d1defc8397d8531164bc240.tar.gz |
debugger: refactor module/symbol view
Diffstat (limited to 'src/plugins/debugger/moduleshandler.cpp')
-rw-r--r-- | src/plugins/debugger/moduleshandler.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/debugger/moduleshandler.cpp b/src/plugins/debugger/moduleshandler.cpp index dc7c1ac0c7..ea01954600 100644 --- a/src/plugins/debugger/moduleshandler.cpp +++ b/src/plugins/debugger/moduleshandler.cpp @@ -62,7 +62,7 @@ public: // QAbstractItemModel int columnCount(const QModelIndex &parent) const - { return parent.isValid() ? 0 : 4; } + { return parent.isValid() ? 0 : 5; } int rowCount(const QModelIndex &parent) const { return parent.isValid() ? 0 : m_modules.size(); } QModelIndex parent(const QModelIndex &) const { return QModelIndex(); } @@ -85,6 +85,7 @@ QVariant ModulesModel::headerData(int section, if (orientation == Qt::Horizontal && role == Qt::DisplayRole) { static QString headers[] = { tr("Module name") + " ", + tr("Module path") + " ", tr("Symbols read") + " ", tr("Start address") + " ", tr("End address") + " " @@ -112,14 +113,18 @@ QVariant ModulesModel::data(const QModelIndex &index, int role) const break; case 1: if (role == Qt::DisplayRole) - return module.symbolsRead ? "yes" : "no"; + return module.modulePath; break; case 2: if (role == Qt::DisplayRole) - return module.startAddress; + return module.symbolsRead ? "yes" : "no"; break; case 3: if (role == Qt::DisplayRole) + return module.startAddress; + break; + case 4: + if (role == Qt::DisplayRole) return module.endAddress; break; } |