# HG changeset patch # User nemo # Date 1328484002 18000 # Node ID f8bbfa9a1a36f0bb64e640b8cb057a7f301fef07 # Parent 3028b9293b5498b2f5c47bbb56bab140bc3fe9ec Disable opacity across the board. It is screwed up in OSX and apparently also Linux. Bad artifacts and overall performance. diff -r 3028b9293b54 -r f8bbfa9a1a36 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Sun Feb 05 17:35:52 2012 -0500 +++ b/QTfrontend/hwform.cpp Sun Feb 05 18:20:02 2012 -0500 @@ -623,7 +623,7 @@ { /**Start animation :**/ int coeff = 1; -#ifndef Q_OS_MAC +#ifdef false coeff = 2; QGraphicsOpacityEffect *effectNew = new QGraphicsOpacityEffect(ui.Pages->widget(id)); ui.Pages->widget(id)->setGraphicsEffect(effectNew); @@ -641,7 +641,7 @@ animationNewSlide->setEndValue(QPoint(0, 0)); animationNewSlide->setEasingCurve(QEasingCurve::OutExpo); -#ifndef Q_OS_MAC +#ifdef false animationNewOpacity = new QPropertyAnimation(effectNew, "opacity"); animationNewOpacity->setDuration(duration); animationNewOpacity->setStartValue(0.01); @@ -658,7 +658,7 @@ animationOldSlide->setEndValue(QPoint(-width()/coeff, 0)); animationOldSlide->setEasingCurve(QEasingCurve::OutExpo); -#ifndef Q_OS_MAC +#ifdef false animationOldOpacity = new QPropertyAnimation(effectLast, "opacity"); animationOldOpacity->setDuration(duration); animationOldOpacity->setStartValue(1); @@ -669,7 +669,7 @@ QParallelAnimationGroup *group = new QParallelAnimationGroup; group->addAnimation(animationOldSlide); group->addAnimation(animationNewSlide); -#ifndef Q_OS_MAC +#ifdef false group->addAnimation(animationOldOpacity); group->addAnimation(animationNewOpacity); #endif @@ -732,7 +732,7 @@ if (curid != 0 && !stopAnim) { int coeff = 1; -#ifndef Q_OS_MAC +#ifdef false coeff = 2; QGraphicsOpacityEffect *effectNew = new QGraphicsOpacityEffect(ui.Pages->widget(id)); effectNew->setOpacity(1); @@ -751,7 +751,7 @@ animationOldSlide->setEndValue(QPoint(0, 0)); animationOldSlide->setEasingCurve(QEasingCurve::OutExpo); -#ifndef Q_OS_MAC +#ifdef false animationOldOpacity = new QPropertyAnimation(effectLast, "opacity"); animationOldOpacity->setDuration(duration); animationOldOpacity->setStartValue(1); @@ -767,7 +767,7 @@ animationNewSlide->setEndValue(QPoint(width()/coeff, 0)); animationNewSlide->setEasingCurve(QEasingCurve::OutExpo); -#ifndef Q_OS_MAC +#ifdef false animationNewOpacity = new QPropertyAnimation(effectNew, "opacity"); animationNewOpacity->setDuration(duration); animationNewOpacity->setStartValue(0.01); @@ -778,7 +778,7 @@ QParallelAnimationGroup *group = new QParallelAnimationGroup; group->addAnimation(animationOldSlide); group->addAnimation(animationNewSlide); -#ifndef Q_OS_MAC +#ifdef false group->addAnimation(animationOldOpacity); group->addAnimation(animationNewOpacity); #endif