<table><tr><td style="">graesslin created this revision.<br />graesslin added a reviewer: Frameworks.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: kde-frameworks-devel.<br />graesslin 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/D13541">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The only usage of widgets was to get the active window. Incorrectly this<br />
was done through QWidget which would fail for any application using just<br />
QtGui (e.g. QtQuick).</p>

<p>As QGuiApplication also provides access to the focus window we can use<br />
QtGui API instead. As a note: the whole thing is X11 specific as a<br />
window ID is passed to another process, which cannot work on Wayland.<br />
It's possible to get it work on Wayland, but that would require:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">changes to the dbus protocol</li>
<li class="remarkup-list-item">add a dependency to KWayland</li>
<li class="remarkup-list-item">or extend QtWayland to generate the required code</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><p>Compiles</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R245 Solid</div></div></div><br /><div><strong>BRANCH</strong><div><div>gui-instead-of-widgets</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13541">https://phabricator.kde.org/D13541</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
src/solid/CMakeLists.txt<br />
src/solid/devices/backends/udisks2/udisksstorageaccess.cpp</div></div></div><br /><div><strong>To: </strong>graesslin, Frameworks<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>