<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, hein.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.<br />broulik 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/D9754" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Qt's Drag attached property doesn't like it at all when it gets deleted during drag.<br />
Even though we try very hard to keep the popup open, when you have multiple notification applets, their dialogs don't know each other but access a shared data engine. This means that, since there can only we one hovered dialog at a time, another notification applet might still dismiss the notification and have our dialog close.<br />
By using a singleton NotificationHelper we 1.) decouple the Drag from the item and 2.) share the "is dragging" state between applets.</p>
<p>BUG: 388684<br />
FIXED-IN: 5.12.0</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>DragHelper taken from Kicker and adjusted</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Added two notification applets, took a screenshot, dragged the screenshot of a notification, waited a bit, notification stayed open. Previously it would still close and then crash</li>
<li class="remarkup-list-item">left click to open thumbnail still works</li>
<li class="remarkup-list-item">Right click for context menu still works</li>
<li class="remarkup-list-item">We get a nice drag pixmap now, the original code with using the QPixmapItem as drag source never worked apparently</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9754" rel="noreferrer">https://phabricator.kde.org/D9754</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/notifications/package/contents/ui/ThumbnailStrip.qml<br />
applets/notifications/plugin/CMakeLists.txt<br />
applets/notifications/plugin/draghelper.cpp<br />
applets/notifications/plugin/draghelper.h<br />
applets/notifications/plugin/notificationshelperplugin.cpp</div></div></div><br /><div><strong>To: </strong>broulik, Plasma, hein<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>