summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/citizenquartz/main.cpp
blob: 2c6b14cd835e84c3ec2844de10243b5f6e6b204d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <QApplication>
#include <QGraphicsScene>
#include <QGraphicsView>

#include "clock.h"

int main(int argc, char **argv)
{
    QApplication app(argc, argv);

    QGraphicsScene scene;
    
    Clock *clock = new Clock;
    clock->initializeUi();
    clock->initializeStateMachine();
    scene.addItem(clock);

    QGraphicsView view(&scene);
    view.setRenderHint(QPainter::Antialiasing);
    view.show();

    return app.exec();
}