src/main.cpp

changeset 363
16f5dcfa7c9f
parent 362
e1d646a4cbd8
child 367
df61cd3d5ab4
equal deleted inserted replaced
362:e1d646a4cbd8 363:16f5dcfa7c9f
21 #include "src/version.h" 21 #include "src/version.h"
22 #include "src/widgets/colorselectdialog.h" 22 #include "src/widgets/colorselectdialog.h"
23 #include "src/parser.h" 23 #include "src/parser.h"
24 #include "src/ldrawsyntaxhighlighter.h" 24 #include "src/ldrawsyntaxhighlighter.h"
25 #include <GL/glew.h> 25 #include <GL/glew.h>
26 #include "src/main.h"
27 26
28 static const QDir LOCALE_DIR {":/locale"}; 27 static const QDir LOCALE_DIR {":/locale"};
29 28
30 class ModelData : public QObject 29 class ModelData : public QObject
31 { 30 {
38 std::unique_ptr<GridLayer> gridLayer; 37 std::unique_ptr<GridLayer> gridLayer;
39 std::unique_ptr<QTextCursor> textcursor; 38 std::unique_ptr<QTextCursor> textcursor;
40 QTextDocument* model; 39 QTextDocument* model;
41 }; 40 };
42 41
43 class Signal final : public QObject
44 {
45 Q_OBJECT
46 public:
47 Signal() : QObject{}{}
48 virtual ~Signal(){}
49 void emit()
50 {
51 Q_EMIT this->triggered();
52 }
53 Q_SIGNALS:
54 void triggered();
55 };
56 #include <main.moc> 42 #include <main.moc>
57 43
58 static void doQtRegistrations() 44 static void doQtRegistrations()
59 { 45 {
60 QCoreApplication::setApplicationName(QStringLiteral(CMAKE_PROJECT_NAME)); 46 QCoreApplication::setApplicationName(QStringLiteral(CMAKE_PROJECT_NAME));

mercurial