Debugger: Some infrastructure for stricter watch model testing

Targeting re-use for tooltips, and potentially sorting.

Change-Id: I1ce8f4da73ab5ca13cd70d7c651bc76c67f91a39
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-06-02 10:43:26 +02:00
parent c3cb944eec
commit 99271c2343
8 changed files with 67 additions and 19 deletions

View File

@@ -136,6 +136,8 @@ void BaseTreeView::resizeColumnsToContents()
void BaseTreeView::setAlwaysResizeColumnsToContents(bool on)
{
if (!header())
return;
QHeaderView::ResizeMode mode = on
? QHeaderView::ResizeToContents : QHeaderView::Interactive;
for (int i = 0, n = header()->count(); i != n; ++i)