Commit 6919b948 authored by Marco Martin's avatar Marco Martin
Browse files

use window->objectName()

unfortunately the QQuickWindow of a QQuickWidget is just a
QQuickWindow and not a subclass so we don't have a better way to recognize it
parent 061923e8
......@@ -44,6 +44,7 @@
// needed to enable dragging from QQuickWindows
#include <QQuickWindow>
#include <QQuickRenderControl>
namespace Util
......@@ -184,7 +185,7 @@ namespace Breeze
if ( !item ) return;
auto window = item->window();
if( window && !window->inherits("QQuickOffScreenWindow"))
if( window && window->objectName() != QStringLiteral("QQuickOffScreenWindow"))
auto contentItem = window->contentItem();
contentItem->setAcceptedMouseButtons( Qt::LeftButton );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment