Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/3dview/bedproperties.h
Show All 24 Lines | |||||
25 | 25 | | |||
26 | class BedProperties : public QObject | 26 | class BedProperties : public QObject | ||
27 | { | 27 | { | ||
28 | Q_OBJECT | 28 | Q_OBJECT | ||
29 | Q_PROPERTY(int width READ width NOTIFY widthChanged) | 29 | Q_PROPERTY(int width READ width NOTIFY widthChanged) | ||
30 | Q_PROPERTY(int depth READ depth NOTIFY depthChanged) | 30 | Q_PROPERTY(int depth READ depth NOTIFY depthChanged) | ||
31 | public: | 31 | public: | ||
32 | explicit BedProperties(QObject *parent = nullptr); | 32 | explicit BedProperties(QObject *parent = nullptr); | ||
33 | ~BedProperties(); | 33 | ~BedProperties() = default; | ||
34 | 34 | | |||
35 | int width() const; | 35 | int width() const; | ||
36 | int depth() const; | 36 | int depth() const; | ||
37 | 37 | | |||
38 | signals: | 38 | signals: | ||
39 | void widthChanged(int width); | 39 | void widthChanged(int width); | ||
40 | void depthChanged(int depth); | 40 | void depthChanged(int depth); | ||
41 | 41 | | |||
42 | private: | 42 | private: | ||
43 | void updateBedSize(const QSize &size); | 43 | void updateBedSize(const QSize &size); | ||
44 | 44 | | |||
45 | int m_width; | 45 | int m_width; | ||
46 | int m_depth; | 46 | int m_depth; | ||
47 | }; | 47 | }; |