diff options
| author | Samu Laaksonen <laaksonen.sj@gmail.com> | 2012-09-30 13:33:24 +0300 |
|---|---|---|
| committer | Samu Laaksonen <laaksonen.sj@gmail.com> | 2012-09-30 13:33:24 +0300 |
| commit | 2049e08432907f645f5a3786ea4f50a6456b77c4 (patch) | |
| tree | fbecdda668e9e560d6822f5a658e6a3a4e157405 /src/BarDisplay.cpp | |
| parent | a8934f323fd7e48014addb55ff25ef0486aebbd1 (diff) | |
| download | prism-2049e08432907f645f5a3786ea4f50a6456b77c4.tar.gz prism-2049e08432907f645f5a3786ea4f50a6456b77c4.zip | |
ActionScene changes
Added drawBackground and drawForeground
- background for handling parallax scrolling during levels
- foreground for HUD implementation
Diffstat (limited to 'src/BarDisplay.cpp')
| -rw-r--r-- | src/BarDisplay.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/BarDisplay.cpp b/src/BarDisplay.cpp index edab1c9..db6136d 100644 --- a/src/BarDisplay.cpp +++ b/src/BarDisplay.cpp @@ -1,7 +1,7 @@ #include "BarDisplay.h" -BarDisplay::BarDisplay(QGraphicsItem* parent) : - QGraphicsItem(parent) +BarDisplay::BarDisplay() : + QPixmap() { m_partCount = 4; m_maxValue = 50; @@ -47,12 +47,3 @@ void BarDisplay::updateDisplay() { // TODO: update graphics so user knows he is hit } - -QRectF BarDisplay::boundingRect() const -{ - return QRectF(); -} - -void BarDisplay::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) -{ -} |
