Add workaround for bug in QLineEdit's clear button
AbandonedPublic

Authored by elvisangelaccio on Apr 5 2017, 9:53 PM.

Details

Reviewers
cfeck
Summary

The clear button in QLineEdit takes up space even when not visible.
This is a problem when there is a custom action visible when the clear
action is not, in other words what commit f6ff8e3952 does.

Manually setting the visibility of the clear QAction fixes the issue.
This is a workaround until https://bugreports.qt.io/browse/QTBUG-59957
is not fixed.

Diff Detail

Branch
workaround-clear-button-bug
Lint
No Linters Available
Unit
No Unit Test Coverage
elvisangelaccio created this revision.Apr 5 2017, 9:53 PM
elvisangelaccio abandoned this revision.Apr 20 2017, 9:39 PM

The bug has been fixed in Qt 5.9, this workaround only makes things more complex.