diff options
Diffstat (limited to 'src/BarDisplay.h')
| -rw-r--r-- | src/BarDisplay.h | 65 |
1 files changed, 32 insertions, 33 deletions
diff --git a/src/BarDisplay.h b/src/BarDisplay.h index d1ab534..ff4ce8b 100644 --- a/src/BarDisplay.h +++ b/src/BarDisplay.h @@ -1,33 +1,32 @@ -#ifndef BarDisplay_h -#define BarDisplay_h - -#include <QPixmap> - -class BarDisplay : public QPixmap -{ -public: - BarDisplay(int w = 250, int h = 40); - virtual ~BarDisplay(); - - void initShape(); - - void collected(int); - void consumed(int); - void setDisplayColor(QColor col); - -signals: - -public slots: - -private: - int m_partCount; - int m_value; - int m_maxValue; - QColor m_displayColor; - QVector<QPolygon> m_healthIndicators; - - void updateDisplay(); - -}; - -#endif // BarDisplay_h +#ifndef BarDisplay_h
+#define BarDisplay_h
+
+#include <QPixmap>
+
+class BarDisplay : public QPixmap
+{
+public:
+ BarDisplay(int w = 250, int h = 40);
+ virtual ~BarDisplay();
+
+ void initShape();
+
+ void collected(int);
+ void consumed(int);
+ void setDisplayColor(QColor col);
+
+ void updateDisplay();
+
+signals:
+
+public slots:
+
+private:
+ int m_partCount;
+ int m_value;
+ int m_maxValue;
+ QColor m_displayColor;
+ QVector<QPolygon> m_healthIndicators;
+};
+
+#endif // BarDisplay_h
|
