src/editmodes/selectMode.cpp

changeset 1298
dbc8bb2a4d84
parent 1296
aee618d087ff
child 1326
69a90bd2dba2
equal deleted inserted replaced
1297:389516787a4c 1298:dbc8bb2a4d84
19 #include <QMouseEvent> 19 #include <QMouseEvent>
20 #include "selectMode.h" 20 #include "selectMode.h"
21 #include "../canvas.h" 21 #include "../canvas.h"
22 #include "../mainwindow.h" 22 #include "../mainwindow.h"
23 #include "../lddocument.h" 23 #include "../lddocument.h"
24 #include "../widgets/vertexobjecteditor.h" 24 #include "../guiutilities.h"
25 25
26 SelectMode::SelectMode (Canvas* canvas) : 26 SelectMode::SelectMode (Canvas* canvas) :
27 Super (canvas), 27 Super (canvas),
28 m_rangepick (false) {} 28 m_rangepick (false) {}
29 29
132 { 132 {
133 QModelIndex index = renderer()->pick(ev->x(), ev->y()); 133 QModelIndex index = renderer()->pick(ev->x(), ev->y());
134 134
135 if (index.isValid()) 135 if (index.isValid())
136 { 136 {
137 // TODO:
138 LDObject* object = currentDocument()->lookup(index); 137 LDObject* object = currentDocument()->lookup(index);
139 VertexObjectEditor editor {object}; 138 ::editObject(this->m_window, object);
140 editor.exec();
141 m_window->endAction(); 139 m_window->endAction();
142 return true; 140 return true;
143 } 141 }
144 } 142 }
145 143

mercurial