<table><tr><td style="">daandemeyer created this revision.<br />daandemeyer added a reviewer: KTextEditor.<br />daandemeyer added a project: KTextEditor.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />daandemeyer requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23373">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>See <a href="https://mail.kde.org/pipermail/kwrite-devel/2019-August/005302.html" class="remarkup-link" target="_blank" rel="noreferrer">https://mail.kde.org/pipermail/kwrite-devel/2019-August/005302.html</a></p>

<p>Because the <tt style="background: #ebebeb; font-size: 13px;"> Qt::WA_OpaquePaintEvent </tt> 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 <tt style="background: #ebebeb; font-size: 13px;">Qt::WA_OpaquePaintEvent </tt> option which tells Qt to not erase the widget's area before repainting. This fixes the flickering when switching between documents.</p>

<p>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.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23373">https://phabricator.kde.org/D23373</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/view/kateviewhelpers.cpp</div></div></div><br /><div><strong>To: </strong>daandemeyer, KTextEditor<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, KTextEditor, LeGast00n, szutmael, GB_2, domson, michaelh, ngraham, bruns, demsking, head7, cullmann, kfunk, sars, dhaumann<br /></div>