debugger: polish module symbols

This commit is contained in:
hjk
2010-11-26 09:58:34 +01:00
parent a9f825fc2e
commit 7d8d51677b
16 changed files with 173 additions and 106 deletions

View File

@@ -63,9 +63,6 @@
#include <QtCore/QTimer>
#include <QtCore/QFutureInterface>
#include <QtGui/QStandardItemModel>
#include <QtGui/QAction>
#include <QtGui/QTreeWidget>
#include <QtGui/QMessageBox>
using namespace Core;
@@ -301,26 +298,6 @@ void DebuggerEngine::removeTooltip()
hideDebuggerToolTip();
}
void DebuggerEngine::showModuleSymbols
(const QString &moduleName, const Symbols &symbols)
{
QTreeWidget *w = new QTreeWidget;
w->setColumnCount(3);
w->setRootIsDecorated(false);
w->setAlternatingRowColors(true);
w->setSortingEnabled(true);
w->setHeaderLabels(QStringList() << tr("Symbol") << tr("Address") << tr("Code"));
w->setWindowTitle(tr("Symbols in \"%1\"").arg(moduleName));
foreach (const Symbol &s, symbols) {
QTreeWidgetItem *it = new QTreeWidgetItem;
it->setData(0, Qt::DisplayRole, s.name);
it->setData(1, Qt::DisplayRole, s.address);
it->setData(2, Qt::DisplayRole, s.state);
w->addTopLevelItem(it);
}
debuggerCore()->createNewDock(w);
}
void DebuggerEngine::frameUp()
{
int currentIndex = stackHandler()->currentIndex();