summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxflipable.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-06-19 05:58:16 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-06-19 05:58:16 (GMT)
commit0b59aed42d27584ef3493305c565dd47f66d179d (patch)
tree5714e8f4fcd37e7500e85dfedb902fdf997eedae /src/declarative/fx/qfxflipable.cpp
parentbbdaf08826a9c93d2c0f56cbe064ee4c47a04f0f (diff)
downloadQt-0b59aed42d27584ef3493305c565dd47f66d179d.zip
Qt-0b59aed42d27584ef3493305c565dd47f66d179d.tar.gz
Qt-0b59aed42d27584ef3493305c565dd47f66d179d.tar.bz2
Remove OpenGL support from Fluid UI primitives
Diffstat (limited to 'src/declarative/fx/qfxflipable.cpp')
-rw-r--r--src/declarative/fx/qfxflipable.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/declarative/fx/qfxflipable.cpp b/src/declarative/fx/qfxflipable.cpp
index 4c02e74..0957c2f 100644
--- a/src/declarative/fx/qfxflipable.cpp
+++ b/src/declarative/fx/qfxflipable.cpp
@@ -220,21 +220,12 @@ void QFxFlipablePrivate::setBackTransform()
axisRotation.setAngle(rotation);
QSimpleCanvas::Matrix mat;
-#ifdef QFX_RENDER_OPENGL
- mat.translate(back->width()/2,back->height()/2, 0);
- if (back->width() && p1.x() >= p2.x())
- mat.rotate(180, 0, 1, 0);
- if (back->height() && p2.y() >= p3.y())
- mat.rotate(180, 1, 0, 0);
- mat.translate(-back->width()/2,-back->height()/2, 0);
-#else
mat.translate(back->width()/2,back->height()/2);
if (back->width() && p1.x() >= p2.x())
mat.rotate(180, Qt::YAxis);
if (back->height() && p2.y() >= p3.y())
mat.rotate(180, Qt::XAxis);
mat.translate(-back->width()/2,-back->height()/2);
-#endif
back->setTransform(mat);
}
@@ -318,21 +309,12 @@ void QFxFlipable::transformChanged(const QSimpleCanvas::Matrix &trans)
d->current = newSide;
if (d->current==Back) {
QSimpleCanvas::Matrix mat;
-#ifdef QFX_RENDER_OPENGL
- mat.translate(d->back->width()/2,d->back->height()/2, 0);
- if (d->back->width() && p1.x() >= p2.x())
- mat.rotate(180, 0, 1, 0);
- if (d->back->height() && p2.y() >= p3.y())
- mat.rotate(180, 1, 0, 0);
- mat.translate(-d->back->width()/2,-d->back->height()/2, 0);
-#else
mat.translate(d->back->width()/2,d->back->height()/2);
if (d->back->width() && p1.x() >= p2.x())
mat.rotate(180, Qt::YAxis);
if (d->back->height() && p2.y() >= p3.y())
mat.rotate(180, Qt::XAxis);
mat.translate(-d->back->width()/2,-d->back->height()/2);
-#endif
d->back->setTransform(mat);
}
if (d->front)