Changeset View
Changeset View
Standalone View
Standalone View
effects/cubeslide/cubeslide.cpp
Show First 20 Lines • Show All 381 Lines • ▼ Show 20 Line(s) | 351 | if (timeLine.currentValue() == 1.0) { | |||
---|---|---|---|---|---|
382 | else | 382 | else | ||
383 | timeLine.setCurveShape(QTimeLine::LinearCurve); | 383 | timeLine.setCurveShape(QTimeLine::LinearCurve); | ||
384 | if (slideRotations.empty()) { | 384 | if (slideRotations.empty()) { | ||
385 | for (EffectWindow* w : staticWindows) { | 385 | for (EffectWindow* w : staticWindows) { | ||
386 | w->setData(WindowForceBlurRole, QVariant()); | 386 | w->setData(WindowForceBlurRole, QVariant()); | ||
387 | w->setData(WindowForceBackgroundContrastRole, QVariant()); | 387 | w->setData(WindowForceBackgroundContrastRole, QVariant()); | ||
388 | } | 388 | } | ||
389 | staticWindows.clear(); | 389 | staticWindows.clear(); | ||
390 | effects->setActiveFullScreenEffect(0); | 390 | effects->setActiveFullScreenEffect(nullptr); | ||
391 | } | 391 | } | ||
392 | } | 392 | } | ||
393 | effects->addRepaintFull(); | 393 | effects->addRepaintFull(); | ||
394 | } | 394 | } | ||
395 | } | 395 | } | ||
396 | 396 | | |||
397 | void CubeSlideEffect::slotDesktopChanged(int old, int current, EffectWindow* w) | 397 | void CubeSlideEffect::slotDesktopChanged(int old, int current, EffectWindow* w) | ||
398 | { | 398 | { | ||
▲ Show 20 Lines • Show All 182 Lines • ▼ Show 20 Line(s) | 580 | if (effects->desktopBelow(effects->currentDesktop()) != effects->currentDesktop()) | |||
581 | windowMovingChanged(0.3 *(float)(cursor.y() - screenSize.height() + vertical) / (float)vertical, Downwards); | 581 | windowMovingChanged(0.3 *(float)(cursor.y() - screenSize.height() + vertical) / (float)vertical, Downwards); | ||
582 | } else { | 582 | } else { | ||
583 | // not in one of the areas | 583 | // not in one of the areas | ||
584 | windowMoving = false; | 584 | windowMoving = false; | ||
585 | desktopChangedWhileMoving = false; | 585 | desktopChangedWhileMoving = false; | ||
586 | timeLine.setCurrentTime(0); | 586 | timeLine.setCurrentTime(0); | ||
587 | if (!slideRotations.isEmpty()) | 587 | if (!slideRotations.isEmpty()) | ||
588 | slideRotations.clear(); | 588 | slideRotations.clear(); | ||
589 | effects->setActiveFullScreenEffect(0); | 589 | effects->setActiveFullScreenEffect(nullptr); | ||
590 | effects->addRepaintFull(); | 590 | effects->addRepaintFull(); | ||
591 | } | 591 | } | ||
592 | } | 592 | } | ||
593 | 593 | | |||
594 | void CubeSlideEffect::slotWindowFinishUserMovedResized(EffectWindow* w) | 594 | void CubeSlideEffect::slotWindowFinishUserMovedResized(EffectWindow* w) | ||
595 | { | 595 | { | ||
596 | if (!useWindowMoving) | 596 | if (!useWindowMoving) | ||
597 | return; | 597 | return; | ||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |