summaryrefslogtreecommitdiff
path: root/examples/svg/embedded/weatherinfo/weatherinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/svg/embedded/weatherinfo/weatherinfo.cpp')
-rw-r--r--examples/svg/embedded/weatherinfo/weatherinfo.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/svg/embedded/weatherinfo/weatherinfo.cpp b/examples/svg/embedded/weatherinfo/weatherinfo.cpp
index b64d8ca..21aa986 100644
--- a/examples/svg/embedded/weatherinfo/weatherinfo.cpp
+++ b/examples/svg/embedded/weatherinfo/weatherinfo.cpp
@@ -147,17 +147,13 @@ private slots:
void animate(int frame) {
qreal progress = static_cast<qreal>(frame) / 100;
-#if QT_VERSION >= 0x040500
m_iconItem->setOpacity(progress);
-#endif
qreal hw = width() / 2.0;
m_statusItem->setPos(-hw + hw * progress, 0);
for (int i = 0; i < m_forecastItems.count(); ++i) {
qreal ofs = i * 0.5 / m_forecastItems.count();
qreal alpha = qBound(qreal(0), 2 * (progress - ofs), qreal(1));
-#if QT_VERSION >= 0x040500
m_conditionItems[i]->setOpacity(alpha);
-#endif
QPointF pos = m_forecastItems[i]->pos();
if (width() > height()) {
qreal fx = width() - width() * 0.4 * alpha;