Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/3dview/viewer3d.cpp
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | |||||
73 | } | 73 | } | ||
74 | 74 | | |||
75 | void Viewer3D::drawModel(QString file) | 75 | void Viewer3D::drawModel(QString file) | ||
76 | { | 76 | { | ||
77 | QObject *object = _view->rootObject(); | 77 | QObject *object = _view->rootObject(); | ||
78 | QObject *fileName = object->findChild<QObject *>(QStringLiteral("fileName")); | 78 | QObject *fileName = object->findChild<QObject *>(QStringLiteral("fileName")); | ||
79 | fileName->setProperty("text", QVariant(file)); | 79 | fileName->setProperty("text", QVariant(file)); | ||
80 | } | 80 | } | ||
81 | | ||||
82 | void Viewer3D::setBedSize(const QSize &newBedSize) | ||||
83 | { | ||||
84 | if (newBedSize != _bedSize) { | ||||
85 | _bedSize = newBedSize; | ||||
86 | emit bedSizeChanged(_bedSize); | ||||
tcanabrava: you are setting the betsize? | |||||
This is ment to work with D16129. I'm not sure how the bed properties is working to go further atm. rizzitello: This is ment to work with D16129. I'm not sure how the bed properties is working to go further… | |||||
You got two options here I'd say:
I don't see any real alternatives, it depends in which direction you want the dependency to go. ervin: You got two options here I'd say:
# you add private API to BedProperties to change its size… | |||||
87 | } | ||||
88 | } | ||||
89 | | ||||
90 | QSize Viewer3D::bedSize() | ||||
91 | { | ||||
92 | return _bedSize; | ||||
93 | } |
you are setting the betsize?