summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/breakwindow.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2011-07-08 15:33:13 +0200
committerhjk <qthjk@ovi.com>2011-07-08 16:10:33 +0200
commit0c3743bb56d34619c723b1a13e974a451353d47e (patch)
tree6b35bb689b7c5e9877d1a96609057698480c6c4d /src/plugins/debugger/breakwindow.cpp
parent0461150b852351dd1a9f76b9b1b257706d8ad5a5 (diff)
downloadqt-creator-0c3743bb56d34619c723b1a13e974a451353d47e.tar.gz
debugger: use saved "resize columns to contents" settings
Change-Id: I88d50205d6ba626e0b4bf66879271fafab81e8cb Reviewed-by: con Task-number: QTCREATORBUG-5320 Reviewed-on: http://codereview.qt.nokia.com/1379 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/debugger/breakwindow.cpp')
-rw-r--r--src/plugins/debugger/breakwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/debugger/breakwindow.cpp b/src/plugins/debugger/breakwindow.cpp
index 22e82d812f..02996bfa7b 100644
--- a/src/plugins/debugger/breakwindow.cpp
+++ b/src/plugins/debugger/breakwindow.cpp
@@ -527,6 +527,10 @@ void BreakWindow::setModel(QAbstractItemModel *model)
resizeColumnToContents(0); // Number
resizeColumnToContents(3); // Line
resizeColumnToContents(6); // Ignore count
+ if (header()) {
+ bool adjust = debuggerCore()->boolSetting(AlwaysAdjustBreakpointsColumnWidths);
+ setAlwaysResizeColumnsToContents(adjust);
+ }
connect(model, SIGNAL(layoutChanged()), this, SLOT(expandAll()));
}