debugger: make views searchable

Change-Id: Icade50bfaa884d88e451e688acf62d6793346628
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-03-22 11:54:49 +01:00
committed by hjk
parent 22a949b5c1
commit 32ec60958d
12 changed files with 138 additions and 96 deletions

View File

@@ -76,7 +76,7 @@ StackWindow::StackWindow(QWidget *parent)
void StackWindow::showAddressColumn(bool on)
{
setColumnHidden(4, !on);
treeView()->setColumnHidden(4, !on);
}
void StackWindow::rowActivated(const QModelIndex &index)
@@ -121,9 +121,11 @@ static inline StackFrame inputFunctionForDisassembly()
void StackWindow::contextMenuEvent(QContextMenuEvent *ev)
{
QModelIndexList si = selectedIndices(ev);
QTC_ASSERT(si.size() == 1, return);
DebuggerEngine *engine = currentEngine();
StackHandler *handler = engine->stackHandler();
const QModelIndex index = indexAt(ev->pos());
const QModelIndex index = si.at(0);
const int row = index.row();
StackFrame frame;
if (row >= 0 && row < handler->stackSize())