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
This commit is contained in:
Jens Bache-Wiig
2010-04-26 20:25:14 +02:00
parent e7eeaf7204
commit d03367df61

View File

@@ -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()),