tools/drawMapTest/main.cpp
author nemo
Mon, 08 Dec 2014 09:35:14 -0500
changeset 10634 35d059bd0932
parent 4425 2314bb0c433d
permissions -rw-r--r--
Use FreeAndNil across the board. Even if we are immediately assigning after, probably avoids accidental mistakes. Also free neglected owner tex on shutdown, and delete hog gears using the normal deletion procedure if for any reason they still exist (EndGame call?).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4425
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     1
#include <QtGui/QApplication>
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     2
#include "mainwindow.h"
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     3
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     4
int main(int argc, char *argv[])
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     5
{
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     6
    QApplication a(argc, argv);
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     7
    MainWindow w;
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     8
    w.show();
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
     9
    return a.exec();
2314bb0c433d Small testing app for DrawMap scene
unc0rr
parents:
diff changeset
    10
}