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.