Fix VariableToolTip auto resizing.

Authored by michalsrb on Aug 16 2018, 3:14 PM.

Description

Fix VariableToolTip auto resizing.

Summary:
The VariableToolTip is supposed to resize vertically as much as can fit
in the window whenever the content changes. It was not working because
the m_itemHeight was 0 which was because the QTreeView::indexRowSizeHint
was called with index from m_model instead of m_proxy.

Same for the initial selection below.

Test Plan:
Debug some program, stop execution and hover over some variable. Expand
some subitems - the tooltip should be resizing.

Reviewers: KDevelop, kfunk

Reviewed By: KDevelop, kfunk

Subscribers: kfunk, kdevelop-devel

Tags: KDevelop

Differential Revision: https://phabricator.kde.org/D14879

Details

Committed
brauchAug 16 2018, 3:17 PM
Reviewer
KDevelop
Differential Revision
D14879: Fix VariableToolTip auto resizing.
Parents
R32:4fb465589aba: Fix problems with output filters in StandardOutputView plugin
Branches
Unknown
Tags
Unknown