diff -r cc5976f292f9 -r e528696f2177 QTfrontend/statsPage.h --- a/QTfrontend/statsPage.h Sat Jan 10 15:45:15 2009 +0000 +++ b/QTfrontend/statsPage.h Sat Jan 10 15:48:02 2009 +0000 @@ -21,9 +21,19 @@ #include #include +#include #include "pages.h" -class QGraphicsView; +class FitGraphicsView : public QGraphicsView +{ + Q_OBJECT + +public: + FitGraphicsView(QWidget* parent = 0); + +protected: + void resizeEvent(QResizeEvent * event); +}; class PageGameStats : public AbstractPage { @@ -34,7 +44,7 @@ QPushButton *BtnBack; QLabel *labelGameStats; - QGraphicsView * graphic; + FitGraphicsView * graphic; public slots: void GameStats(char type, const QString & info);