equal
deleted
inserted
replaced
24 #include <QGraphicsView> |
24 #include <QGraphicsView> |
25 #include "pages.h" |
25 #include "pages.h" |
26 |
26 |
27 class FitGraphicsView : public QGraphicsView |
27 class FitGraphicsView : public QGraphicsView |
28 { |
28 { |
29 Q_OBJECT |
29 Q_OBJECT |
30 |
30 |
31 public: |
31 public: |
32 FitGraphicsView(QWidget* parent = 0); |
32 FitGraphicsView(QWidget* parent = 0); |
33 |
33 |
34 protected: |
34 protected: |
35 void resizeEvent(QResizeEvent * event); |
35 void resizeEvent(QResizeEvent * event); |
36 }; |
36 }; |
37 |
37 |
38 class PageGameStats : public AbstractPage |
38 class PageGameStats : public AbstractPage |
39 { |
39 { |
40 Q_OBJECT |
40 Q_OBJECT |
41 |
41 |
42 public: |
42 public: |
43 PageGameStats(QWidget* parent = 0); |
43 PageGameStats(QWidget* parent = 0); |
44 |
44 |
45 QPushButton *BtnBack; |
45 QPushButton *BtnBack; |
46 QLabel *labelGameStats; |
46 QLabel *labelGameStats; |
47 FitGraphicsView * graphic; |
47 FitGraphicsView * graphic; |
48 |
48 |
49 public slots: |
49 public slots: |
50 void GameStats(char type, const QString & info); |
50 void GameStats(char type, const QString & info); |
51 void clear(); |
51 void clear(); |
52 void renderStats(); |
52 void renderStats(); |
53 |
53 |
54 private: |
54 private: |
55 void AddStatText(const QString & msg); |
55 void AddStatText(const QString & msg); |
56 |
56 |
57 QMap<quint32, QVector<quint32> > healthPoints; |
57 QMap<quint32, QVector<quint32> > healthPoints; |
58 }; |
58 }; |
59 |
59 |
60 #endif // STATSPAGE_H |
60 #endif // STATSPAGE_H |