<table><tr><td style="">jhasse created this revision.<br />Herald added projects: Marble, KDE Edu.<br />Herald added subscribers: kde-edu, marble-devel.<br />jhasse 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/D29880">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>I've noticed that when using MarbleWidget in my app, closing the top level widget will no longer quit the QApplication. This is because the PopupLayer is still alive and has Qt::WA_QuitOnClose set, but is never closed.</p>
<p>When unsetting it, MarbleWidget can be used in a window without having to set Qt::WA_DeleteOnClose. This allows the window to be created on the stack - also how it's done in Qt's examples: <a href="https://doc.qt.io/qt-5/qtwidgets-mainwindows-application-example.html" class="remarkup-link" target="_blank" rel="noreferrer">https://doc.qt.io/qt-5/qtwidgets-mainwindows-application-example.html</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R34 Marble</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29880">https://phabricator.kde.org/D29880</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/apps/marble-kde/kdemain.cpp<br />
src/apps/marble-qt/qtmain.cpp<br />
src/lib/marble/PopupItem.cpp</div></div></div><br /><div><strong>To: </strong>jhasse<br /><strong>Cc: </strong>marble-devel, kde-edu, fbampaloukas, torhamzed, jalvarez, mnafees, shentey, chaz6, dkolozsvari, narvaez, cmihalache, rahn, apol, nienhueser<br /></div>