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

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
{
_dragTimer.stop();
setLocked( false );
if( _target ) startDrag( _target.data()->window()->windowHandle() );
#if BREEZE_HAVE_QTQUICK
else if( _quickTarget ) startDrag( _quickTarget.data()->window() );
#endif
resetDrag();
} else {
......
Markdown is supported
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