src/main.cpp

changeset 89
7abaf1d64719
parent 77
028798a72591
child 92
c438a7db7c52
equal deleted inserted replaced
88:14e51640c189 89:7abaf1d64719
18 18
19 #include <QApplication> 19 #include <QApplication>
20 #include <GL/glut.h> 20 #include <GL/glut.h>
21 #include "mainwindow.h" 21 #include "mainwindow.h"
22 #include "version.h" 22 #include "version.h"
23 #include <iostream>
24 #include <QMessageBox>
23 25
24 int main(int argc, char *argv[]) 26 int main(int argc, char *argv[])
25 { 27 {
26 ::glutInit(&argc, argv); 28 ::glutInit(&argc, argv);
27 QCoreApplication::setApplicationName(::appName); 29 QCoreApplication::setApplicationName(::appName);
28 QCoreApplication::setOrganizationName("hecknology.net"); 30 QCoreApplication::setOrganizationName("hecknology.net");
29 QCoreApplication::setOrganizationDomain("hecknology.net"); 31 QCoreApplication::setOrganizationDomain("hecknology.net");
30 ::qRegisterMetaTypeStreamOperators<Library>("Library"); 32 ::qRegisterMetaTypeStreamOperators<Library>("Library");
31 ::qRegisterMetaTypeStreamOperators<Libraries>("Libraries"); 33 ::qRegisterMetaTypeStreamOperators<Libraries>("Libraries");
32 QApplication app{argc, argv}; 34 QApplication app{argc, argv};
35 /*
36 QMessageBox::information(nullptr, "", QMetaType::typeName( qMetaTypeId<ldraw::Color>() ));
37 */
33 MainWindow mainwindow; 38 MainWindow mainwindow;
34 mainwindow.show(); 39 mainwindow.show();
35 return app.exec(); 40 return app.exec();
36 } 41 }

mercurial