Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (16 sloc) 538 Bytes
#include <QtGui/QApplication>
#include <QtCore/QTimer>
#include "application.hpp"
int main (int argc, char **argv) {
Application application(argc, argv);
application.init();
QTimer tick_timer;
tick_timer.start(20);
QObject::connect(&tick_timer, SIGNAL(timeout()),
&application, SLOT(update()));
QTimer spawn_timer;
spawn_timer.start(100);
QObject::connect(&spawn_timer, SIGNAL(timeout()),
&application, SLOT(spawnStuff()));
return application.exec();
}