69 m_compiler = new GLCompiler (this); |
69 m_compiler = new GLCompiler (this); |
70 m_toolTipTimer = new QTimer (this); |
70 m_toolTipTimer = new QTimer (this); |
71 m_toolTipTimer->setSingleShot (true); |
71 m_toolTipTimer->setSingleShot (true); |
72 setAcceptDrops (true); |
72 setAcceptDrops (true); |
73 connect (m_toolTipTimer, SIGNAL (timeout()), this, SLOT (showCameraIconTooltip())); |
73 connect (m_toolTipTimer, SIGNAL (timeout()), this, SLOT (showCameraIconTooltip())); |
|
74 connect(model, SIGNAL(aboutToRemoveObject(LDObject*)), this, SLOT(removeObject(LDObject*))); |
74 resetAllAngles(); |
75 resetAllAngles(); |
75 m_needZoomToFit = true; |
76 m_needZoomToFit = true; |
76 |
77 |
77 // Init camera icons |
78 // Init camera icons |
78 for (Camera camera : iterateEnum<Camera>()) |
79 for (Camera camera : iterateEnum<Camera>()) |
781 } |
782 } |
782 } |
783 } |
783 |
784 |
784 // ============================================================================= |
785 // ============================================================================= |
785 // |
786 // |
786 void GLRenderer::forgetObject(LDObject* obj) |
787 void GLRenderer::removeObject(LDObject* object) |
787 { |
788 { |
788 if (m_objectAtCursor == obj) |
789 if (m_objectAtCursor == object) |
789 m_objectAtCursor = nullptr; |
790 m_objectAtCursor = nullptr; |
790 } |
791 } |
791 |
792 |
792 // ============================================================================= |
793 // ============================================================================= |
793 // |
794 // |