equal
deleted
inserted
replaced
19 #ifndef STATSPAGE_H |
19 #ifndef STATSPAGE_H |
20 #define STATSPAGE_H |
20 #define STATSPAGE_H |
21 |
21 |
22 #include <QVector> |
22 #include <QVector> |
23 #include <QMap> |
23 #include <QMap> |
|
24 #include <QGraphicsView> |
24 #include "pages.h" |
25 #include "pages.h" |
25 |
26 |
26 class QGraphicsView; |
27 class FitGraphicsView : public QGraphicsView |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 FitGraphicsView(QWidget* parent = 0); |
|
33 |
|
34 protected: |
|
35 void resizeEvent(QResizeEvent * event); |
|
36 }; |
27 |
37 |
28 class PageGameStats : public AbstractPage |
38 class PageGameStats : public AbstractPage |
29 { |
39 { |
30 Q_OBJECT |
40 Q_OBJECT |
31 |
41 |
32 public: |
42 public: |
33 PageGameStats(QWidget* parent = 0); |
43 PageGameStats(QWidget* parent = 0); |
34 |
44 |
35 QPushButton *BtnBack; |
45 QPushButton *BtnBack; |
36 QLabel *labelGameStats; |
46 QLabel *labelGameStats; |
37 QGraphicsView * graphic; |
47 FitGraphicsView * graphic; |
38 |
48 |
39 public slots: |
49 public slots: |
40 void GameStats(char type, const QString & info); |
50 void GameStats(char type, const QString & info); |
41 void clear(); |
51 void clear(); |
42 void renderStats(); |
52 void renderStats(); |