demos/qtdemo/mainwindow.h
changeset 33 3e2da88830cd
parent 18 2f34d5167611
child 37 758a864f9613
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    41 
    41 
    42 #ifndef MAIN_WINDOW_H
    42 #ifndef MAIN_WINDOW_H
    43 #define MAIN_WINDOW_H
    43 #define MAIN_WINDOW_H
    44 
    44 
    45 #include <QtGui>
    45 #include <QtGui>
       
    46 #include <QtDeclarative>
    46 #include <QPixmap>
    47 #include <QPixmap>
    47 
    48 
    48 class DemoTextItem;
    49 class DemoTextItem;
    49 class ImageItem;
    50 class ImageItem;
    50 
    51 
    60     int performBenchmark();
    61     int performBenchmark();
    61     void switchTimerOnOff(bool on);
    62     void switchTimerOnOff(bool on);
    62     void start();
    63     void start();
    63 
    64 
    64     QGraphicsScene *scene;
    65     QGraphicsScene *scene;
       
    66     QGraphicsWidget* mainSceneRoot;
       
    67 
    65     bool loop;
    68     bool loop;
    66 
    69 
    67     // FPS stuff:
    70     // FPS stuff:
    68     QList<QTime> frameTimeList;
    71     QList<QTime> frameTimeList;
    69     QList<float> fpsHistory;
    72     QList<float> fpsHistory;