Commit 8a27fe91 authored by David Edmundson's avatar David Edmundson

Add KDE4 guard round mouse synthesised test

parent fb0cbedc
......@@ -445,8 +445,10 @@ namespace Breeze
// cast event and check buttons/modifiers
auto mouseEvent = static_cast<QMouseEvent*>( event );
#if BREEZE_USE_KDE4
if (mouseEvent->source() != Qt::MouseEventNotSynthesized)
{ return false; }
#endif
if( !( mouseEvent->modifiers() == Qt::NoModifier && mouseEvent->button() == Qt::LeftButton ) )
{ return false; }
......@@ -511,8 +513,10 @@ namespace Breeze
// cast event and check drag distance
auto mouseEvent = static_cast<QMouseEvent*>( event );
#if BREEZE_USE_KDE4
if (mouseEvent->source() != Qt::MouseEventNotSynthesized)
{ return false; }
#endif
if( !_dragInProgress )
{
......
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