Fix for showing argument hint tree on non-primary screen.

Authored by tfry on Mar 9 2019, 4:15 PM.

Description

Fix for showing argument hint tree on non-primary screen.

Summary:
If the texteditor window is on a secondary screen of a multi-screen desktop,
*and* the argument hint has not yet been shown, before, *and* it going to be
shown at a y-position above the top of the primary screen, the argument hint
will fail to show (because screenGeometry(this) will incorrectly refer to the
primary screen, then).

Thus, refer to the parent view, when determining screen geometry, as is
already done at other places in the code.

Reviewers: cullmann

Reviewed By: cullmann

Subscribers: cullmann, kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

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

Details

Committed
tfryMar 9 2019, 8:11 PM
Reviewer
cullmann
Differential Revision
D19635: Fix for showing argument hint tree on non-primary screen.
Parents
R39:56d990164f91: GIT_SILENT Upgrade KF5 version to 5.57.0.
Branches
Unknown
Tags
Unknown