diff options
author | hjk <qtc-committer@nokia.com> | 2010-12-17 13:49:49 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-12-17 13:54:48 +0100 |
commit | 2e4ba82be2631415101dbfbc45ce1f10fad97417 (patch) | |
tree | 1cd61d16e57756a024ccd810840ada85959cc6db /src/plugins/debugger/stackwindow.cpp | |
parent | b976a34e56db1975b01d4bfc0ce9b6ba22264e38 (diff) | |
download | qt-creator-2e4ba82be2631415101dbfbc45ce1f10fad97417.tar.gz |
debugger: adjust sizes of some well-known columns in some views
Diffstat (limited to 'src/plugins/debugger/stackwindow.cpp')
-rw-r--r-- | src/plugins/debugger/stackwindow.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/debugger/stackwindow.cpp b/src/plugins/debugger/stackwindow.cpp index dc383ed956..a2988b206a 100644 --- a/src/plugins/debugger/stackwindow.cpp +++ b/src/plugins/debugger/stackwindow.cpp @@ -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(); |