D23373: KTextEditor: Fix left border flicker when switching between documents
Daan De Meyer
noreply at phabricator.kde.org
Fri Aug 23 10:05:47 BST 2019
daandemeyer created this revision.
daandemeyer added a reviewer: KTextEditor.
daandemeyer added a project: KTextEditor.
Herald added projects: Kate, Frameworks.
Herald added subscribers: kde-frameworks-devel, kwrite-devel.
daandemeyer requested review of this revision.
Because the ` Qt::WA_OpaquePaintEvent ` was not enabled, Qt was erasing the widget's area before repainting which briefly cause the background to appear which caused flickering when switching between documents. We can simply enable the `Qt::WA_OpaquePaintEvent ` option which tells Qt to not erase the widget's area before repainting. This fixes the flickering when switching between documents.
This does assume the icon bar does not rely on the widget background color which is the case in my scenario but hopefully one of the maintainers can confirm that this is always the case.
To: daandemeyer, #ktexteditor
Cc: kwrite-devel, kde-frameworks-devel, #ktexteditor, LeGast00n, szutmael, GB_2, domson, michaelh, ngraham, bruns, demsking, head7, cullmann, kfunk, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KWrite-Devel