debugger: adjust sizes of some well-known columns in some views

This commit is contained in:
hjk
2010-12-17 13:49:49 +01:00
parent b976a34e56
commit 2e4ba82be2
6 changed files with 31 additions and 2 deletions

View File

@@ -68,8 +68,6 @@ StackWindow::StackWindow(QWidget *parent)
setIconSize(QSize(10, 10));
header()->setDefaultAlignment(Qt::AlignLeft);
header()->resizeSection(0, 60);
header()->resizeSection(3, 60);
connect(this, SIGNAL(activated(QModelIndex)),
SLOT(rowActivated(QModelIndex)));
@@ -81,6 +79,7 @@ StackWindow::StackWindow(QWidget *parent)
SLOT(reloadFullStack()));
connect(debuggerCore()->action(MaximalStackDepth), SIGNAL(triggered()),
SLOT(reloadFullStack()));
showAddressColumn(false);
}
void StackWindow::showAddressColumn(bool on)
@@ -93,6 +92,14 @@ void StackWindow::rowActivated(const QModelIndex &index)
currentEngine()->activateFrame(index.row());
}
void StackWindow::setModel(QAbstractItemModel *model)
{
QTreeView::setModel(model);
//resizeColumnsToContents();
resizeColumnToContents(0);
resizeColumnToContents(3);
}
void StackWindow::contextMenuEvent(QContextMenuEvent *ev)
{
DebuggerEngine *engine = currentEngine();