[KCollapsibleGroupBox] Fix QTimeLine::start warning at runtime

Authored by dfaure on Sep 27 2019, 12:29 AM.

Description

[KCollapsibleGroupBox] Fix QTimeLine::start warning at runtime

Summary:
KCollapsibleGroupBox::overrideFocusPolicy calls toggle();toggle()
which starts the same QTimeLine twice before it has a change to end.
This prints out an annoying runtime warning.

Test Plan:
kdialog --detailedsorry foo blah
This no longer shows

WARNING: QTimeLine::start: already running

Reviewers: cfeck, ngraham, elvisangelaccio

Reviewed By: cfeck

Subscribers: kde-frameworks-devel

Tags: Frameworks

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