forked from qt-creator/qt-creator
Utils: Even more treeview column size fine tuning
Do it manually now, directly. Changing behavior flags and waiting for the view to act by itself turned out to be too fragile. Change-Id: I31014219b8b20582401bf0431fb805b683aa953f Reviewed-by: Tim Sander <tim@krieglstein.org> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -242,6 +242,7 @@ public:
|
||||
signals:
|
||||
void currentIndexRequested(const QModelIndex &idx);
|
||||
void itemIsExpanded(const QModelIndex &idx);
|
||||
void columnAdjustmentRequested();
|
||||
|
||||
private:
|
||||
QVariant data(const QModelIndex &idx, int role) const;
|
||||
@@ -1248,6 +1249,7 @@ bool WatchModel::setData(const QModelIndex &idx, const QVariant &value, int role
|
||||
} else {
|
||||
m_expandedINames.remove(data.iname);
|
||||
}
|
||||
emit columnAdjustmentRequested();
|
||||
break;
|
||||
|
||||
case LocalsTypeFormatRole:
|
||||
@@ -1566,6 +1568,7 @@ void WatchModel::insertBulkData(const QList<WatchData> &list)
|
||||
insertDataItem(list.at(i), false);
|
||||
#endif
|
||||
CHECK(checkTree());
|
||||
emit columnAdjustmentRequested();
|
||||
}
|
||||
|
||||
static void debugRecursion(QDebug &d, const WatchItem *item, int depth)
|
||||
|
||||
Reference in New Issue
Block a user