From d03367df61e87736b601ea8ed8c8098d6b94b9db Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig <jbache@trolltech.com> Date: Mon, 26 Apr 2010 20:25:14 +0200 Subject: [PATCH] Optimize default header section size for the stack view Both line and level should be smaller than the other headers in the default layout since they only show numbers here. Reviewed-by: danimo --- src/plugins/debugger/debuggermanager.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/debuggermanager.cpp b/src/plugins/debugger/debuggermanager.cpp index c8ab989912e..6365b500695 100644 --- a/src/plugins/debugger/debuggermanager.cpp +++ b/src/plugins/debugger/debuggermanager.cpp @@ -399,9 +399,12 @@ void DebuggerManager::init() // Stack d->m_stackHandler = new StackHandler; - QAbstractItemView *stackView = - qobject_cast<QAbstractItemView *>(d->m_stackWindow); + StackWindow *stackView = + qobject_cast<StackWindow *>(d->m_stackWindow); stackView->setModel(d->m_stackHandler->stackModel()); + stackView->header()->resizeSection(0, 60); + stackView->header()->resizeSection(3, 60); + connect(theDebuggerAction(ExpandStack), SIGNAL(triggered()), this, SLOT(reloadFullStack())); connect(theDebuggerAction(MaximalStackDepth), SIGNAL(triggered()), -- GitLab