<table><tr><td style="">kossebau created this revision.<br />kossebau added a reviewer: KDevelop.<br />Herald added a project: KDevelop.<br />Herald added a subscriber: kdevelop-devel.<br />kossebau 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/D15198">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Having a defined destruction order allows to make more assumptions<br />
in other code referring to the widgets and avoids extra work to track<br />
the addditional lifetime of the widget objects (like e.g. needed with<br />
the KTextEditor::View widget objects, which require the<br />
KTextEditor::MainWindow to exists as long as there is a View object).</p>

<p>With the Sublime::View and the QWidget objects both bound to the same<br />
thread which is the UI objects thread by current design, there is also<br />
no need to defer the deletion into the QWidget object thread.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Have been running this for more than a month, no issues seen.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>deleteViewWidgetsInSync</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15198">https://phabricator.kde.org/D15198</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/shell/ktexteditorpluginintegration.cpp<br />
kdevplatform/shell/ktexteditorpluginintegration.h<br />
kdevplatform/shell/mainwindow.cpp<br />
kdevplatform/shell/tests/test_ktexteditorpluginintegration.cpp<br />
kdevplatform/sublime/view.cpp</div></div></div><br /><div><strong>To: </strong>kossebau, KDevelop<br /><strong>Cc: </strong>kdevelop-devel, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>