Fixed header of "locals and watchers" view

You couldn't disable the 'always adjust column widths to contents' logic
cause of an uninitialized boolean that refused to toggle to false.
This commit is contained in:
Thorbjørn Lindeijer
2008-12-19 17:49:44 +01:00
parent b8f013ce4a
commit 89985c3d1c

View File

@@ -55,7 +55,8 @@ enum { INameRole = Qt::UserRole, VisualRole, ExpandedRole };
/////////////////////////////////////////////////////////////////////
WatchWindow::WatchWindow(Type type, QWidget *parent)
: QTreeView(parent), m_type(type)
: QTreeView(parent), m_type(type)
, m_alwaysResizeColumnsToContents(true)
{
setWindowTitle(tr("Locals and Watchers"));
setAlternatingRowColors(true);