aboutsummaryrefslogtreecommitdiff
path: root/src/BarDisplay.h
blob: c08f9c246b448edfb636e6134511f03ffe3962df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef BarDisplay_h
#define BarDisplay_h

#include <QPixmap>

class BarDisplay : public QPixmap
{
public:
    BarDisplay();
    virtual ~BarDisplay();

    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;

    void updateDisplay();
    
};

#endif // BarDisplay_h