diff options
author | Luiz Agostini <luiz.agostini@openbossa.org> | 2009-11-13 13:52:19 -0300 |
---|---|---|
committer | Luiz Agostini <luiz.agostini@openbossa.org> | 2009-11-13 15:42:02 -0300 |
commit | d5d15204b6ab248c75064a043a0754dab3b383f0 (patch) | |
tree | 0888c630dd22fcf3c6a2e1377086e9fad3f56d15 | |
parent | 3b4c0c3d0667e8db064db8facb11d5cf80f06b88 (diff) |
Weather: adjusting rain position.
Signed-off-by: Luiz Agostini <luiz.agostini@openbossa.org>
-rw-r--r-- | weather/forecastrain.cpp | 1 | ||||
-rw-r--r-- | weather/forecastview.cpp | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/weather/forecastrain.cpp b/weather/forecastrain.cpp index 1b61d32..442d548 100644 --- a/weather/forecastrain.cpp +++ b/weather/forecastrain.cpp @@ -56,6 +56,7 @@ ForecastRain::ForecastRain(RainType type, QGraphicsItem *parent) { for (int i = Light; i <= type; ++i) { QGraphicsPixmapItem *item = new QGraphicsPixmapItem(RainItemArray[i].pic(), this); + item->setPos(0.0, -20.0); m_items.append(item); } m_animation.setStartValue(0.0); diff --git a/weather/forecastview.cpp b/weather/forecastview.cpp index 010e902..f7a0d6b 100644 --- a/weather/forecastview.cpp +++ b/weather/forecastview.cpp @@ -328,7 +328,7 @@ public: static const qreal minHungItemsZ = -1.0; static const qreal maxHungItemsZ = 0.0; static const qreal sunZ = (minHungItemsZ + maxHungItemsZ) / 2.0 + 0.01; -static const qreal starsZ = -2.0; +static const qreal starsZ = -10.0; static const qreal radius = (maxHungItemsZ - minHungItemsZ) * 1; static const qreal maxDisplacementFactor = 1.5; @@ -571,8 +571,7 @@ void ForecastView::addRain(ForecastRain::RainType type) m_rain = new ForecastRain(type, this); m_rain->setPos(getEffectRect().topLeft()); m_rain->hide(); - if (m_reference) - m_rain->setZValue(m_reference->zValue()); + m_rain->setZValue(-1); } } |