Commit d0c925f5 authored by hjk's avatar hjk

Debugger: Switch on "column resize to contents" by default

Since it's easier to shrink columns nowadays (left click
on header section or somewhere in the empty space) this
might "feel" better than last time we tried.

This is an experiment for now, might get reverted before 3.2.

Task-number: QTCREATORBUG-9918
Change-Id: I379d9310e232a16c8b8ee3c6cb0d91746fd7553c
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 4a2ad3d6
......@@ -138,7 +138,8 @@ void BaseTreeView::setAlwaysResizeColumnsToContents(bool on)
{
QHeaderView::ResizeMode mode = on
? QHeaderView::ResizeToContents : QHeaderView::Interactive;
header()->setResizeMode(0, mode);
for (int i = 0, n = header()->count(); i != n; ++i)
header()->setResizeMode(i, mode);
}
void BaseTreeView::toggleColumnWidth(int logicalIndex)
......
......@@ -108,28 +108,28 @@ DebuggerSettings::DebuggerSettings()
item = new SavedAction(this);
item->setText(tr("Always Adjust Column Widths to Contents"));
item->setCheckable(true);
item->setValue(false);
item->setDefaultValue(false);
item->setValue(true);
item->setDefaultValue(true);
item->setSettingsKey(debugModeGroup,
QLatin1String("AlwaysAdjustLocalsColumnWidths"));
QLatin1String("AlwaysAdjustLocalsColumnWidths2"));
insertItem(AlwaysAdjustLocalsColumnWidths, item);
item = new SavedAction(this);
item->setText(tr("Always Adjust Column Widths to Contents"));
item->setCheckable(true);
item->setValue(false);
item->setDefaultValue(false);
item->setValue(true);
item->setDefaultValue(true);
item->setSettingsKey(debugModeGroup,
QLatin1String("AlwaysAdjustStackColumnWidths"));
QLatin1String("AlwaysAdjustStackColumnWidths2"));
insertItem(AlwaysAdjustStackColumnWidths, item);
item = new SavedAction(this);
item->setText(tr("Always Adjust Column Widths to Contents"));
item->setCheckable(true);
item->setValue(false);
item->setDefaultValue(false);
item->setValue(true);
item->setDefaultValue(true);
item->setSettingsKey(debugModeGroup,
QLatin1String("AlwaysAdjustThreadsColumnWidths"));
QLatin1String("AlwaysAdjustThreadsColumnWidths2"));
insertItem(AlwaysAdjustThreadsColumnWidths, item);
item = new SavedAction(this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment