summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/moduleshandler.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2010-05-03 19:12:52 +0200
committerhjk <qtc-committer@nokia.com>2010-05-04 18:00:10 +0200
commit15a595b429ee1d0a7d1defc8397d8531164bc240 (patch)
treedf851da08b812a4d472d389a787bd5290b8c39f3 /src/plugins/debugger/moduleshandler.cpp
parentc4aafc354a73754a2f528c7da64a03e92087d26b (diff)
downloadqt-creator-15a595b429ee1d0a7d1defc8397d8531164bc240.tar.gz
debugger: refactor module/symbol view
Diffstat (limited to 'src/plugins/debugger/moduleshandler.cpp')
-rw-r--r--src/plugins/debugger/moduleshandler.cpp11
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;
}