Commit 061923e8 authored by Marco Martin's avatar Marco Martin
Browse files

don't install event filters on qquickwidgets views

if a QQuickView is part of a QQuickWidget, we can't do window moving
from there because that window is not actually visible.
so ignore everything in this case.
the drag from anywhere will happen at the qwidget level automatically
if no qquickitem ever accepted the mouse
parent 95db63c1
......@@ -183,7 +183,8 @@ namespace Breeze
if ( !item ) return;
if( auto window = item->window() )
auto window = item->window();
if( window && !window->inherits("QQuickOffScreenWindow"))
auto contentItem = window->contentItem();
contentItem->setAcceptedMouseButtons( Qt::LeftButton );
......@@ -279,10 +280,12 @@ namespace Breeze
setLocked( false );
if( _target ) startDrag(>window()->windowHandle() );
else if( _quickTarget ) startDrag(>window() );
} else {
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