File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,9 @@ void CFloatingDockContainer::moveEvent(QMoveEvent *event)
385
385
switch (d->DraggingState )
386
386
{
387
387
case DraggingMousePressed:
388
+ #ifdef Q_OS_WIN
388
389
qApp->installEventFilter (this );
390
+ #endif
389
391
d->setState (DraggingFloatingWidget);
390
392
d->updateDropOverlays (QCursor::pos ());
391
393
break ;
@@ -484,8 +486,7 @@ bool CFloatingDockContainer::event(QEvent *e)
484
486
// It is really great to work around the whole NonClientMouseArea
485
487
// bugs
486
488
#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 2))
487
- if (e->type ()
488
- == QEvent::NonClientAreaMouseButtonPress /* && QGuiApplication::mouseButtons().testFlag(Qt::LeftButton)*/ )
489
+ if (e->type () == QEvent::NonClientAreaMouseButtonPress /* && QGuiApplication::mouseButtons().testFlag(Qt::LeftButton)*/ )
489
490
#else
490
491
if (e->type () == QEvent::NonClientAreaMouseButtonPress && QGuiApplication::mouseButtons ().testFlag (Qt::LeftButton))
491
492
#endif
You can’t perform that action at this time.
0 commit comments