TEMPLATE = app
SOURCES += \
+ ../src/app.cpp\
../src/main.cpp\
../src/canvas.cpp \
../src/mesh.cpp \
../src/backdrop.cpp
HEADERS += \
+ ../src/app.h\
../src/canvas.h \
../src/mesh.h \
../src/glmesh.h \
--- /dev/null
+#include "app.h"
+#include "window.h"
+
+App::App(int argc, char *argv[]) :
+ QApplication(argc, argv), window(new Window())
+{
+ window->show();
+}
--- /dev/null
+#ifndef APP_H
+#define APP_H
+
+#include <QApplication>
+
+class Window;
+
+class App : public QApplication
+{
+ Q_OBJECT
+public:
+ explicit App(int argc, char *argv[]);
+
+signals:
+
+public slots:
+
+private:
+ Window* window;
+
+};
+
+#endif // APP_H
#include <QApplication>
-#include "window.h"
-#include "mesh.h"
-#include "glmesh.h"
+#include "app.h"
int main(int argc, char *argv[])
{
- QApplication a(argc, argv);
-
- Window window;
- window.show();
-
+ App a(argc, argv);
return a.exec();
}