Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/3dview/gcodeto4d.h
Show All 22 Lines | |||||
23 | #include <QObject> | 23 | #include <QObject> | ||
24 | 24 | | |||
25 | class GcodeTo4D : public QObject | 25 | class GcodeTo4D : public QObject | ||
26 | { | 26 | { | ||
27 | Q_OBJECT | 27 | Q_OBJECT | ||
28 | 28 | | |||
29 | public: | 29 | public: | ||
30 | explicit GcodeTo4D(QObject *parent = 0); | 30 | explicit GcodeTo4D(QObject *parent = 0); | ||
31 | ~GcodeTo4D(); | 31 | ~GcodeTo4D() = default; | ||
32 | 32 | | |||
33 | public: | 33 | public: | ||
34 | void read(const QString &url); | 34 | void read(const QString &url); | ||
35 | 35 | | |||
36 | signals: | 36 | signals: | ||
37 | void percentUpdate(const QVariant &percent); | 37 | void percentUpdate(const QVariant &percent); | ||
38 | void posFinished(const QVector<QVector4D> &pos); | 38 | void posFinished(const QVector<QVector4D> &pos); | ||
39 | 39 | | |||
40 | private: | 40 | private: | ||
41 | QThread *_thread; | 41 | QThread *_thread = nullptr; | ||
42 | bool _wait; | 42 | bool _wait = false; | ||
43 | }; | 43 | }; |