src/canvas.cpp

changeset 1392
0541d9b21968
parent 1390
3eace926af7f
child 1404
16eb4257e662
equal deleted inserted replaced
1391:5fa4bf1fc781 1392:0541d9b21968
234 { 234 {
235 if (m_currentEditMode->mouseDoubleClicked (event)) 235 if (m_currentEditMode->mouseDoubleClicked (event))
236 event->accept(); 236 event->accept();
237 } 237 }
238 238
239 void Canvas::dropEvent(QDropEvent* event) 239 void Canvas::dropEvent(QDropEvent* /*event*/)
240 { 240 {
241 /* 241 /*
242 if (m_window and event->source() == m_window->getPrimitivesTree()) 242 if (m_window and event->source() == m_window->getPrimitivesTree())
243 { 243 {
244 PrimitiveTreeItem* item = static_cast<PrimitiveTreeItem*> (m_window->getPrimitivesTree()->currentItem()); 244 PrimitiveTreeItem* item = static_cast<PrimitiveTreeItem*> (m_window->getPrimitivesTree()->currentItem());
362 void Canvas::contextMenuEvent(QContextMenuEvent* event) 362 void Canvas::contextMenuEvent(QContextMenuEvent* event)
363 { 363 {
364 m_window->spawnContextMenu(event->globalPos()); 364 m_window->spawnContextMenu(event->globalPos());
365 } 365 }
366 366
367 void Canvas::dragEnterEvent(QDragEnterEvent* event) 367 void Canvas::dragEnterEvent(QDragEnterEvent* /*event*/)
368 { 368 {
369 /* 369 /*
370 if (m_window and event->source() == m_window->getPrimitivesTree() and m_window->getPrimitivesTree()->currentItem()) 370 if (m_window and event->source() == m_window->getPrimitivesTree() and m_window->getPrimitivesTree()->currentItem())
371 event->acceptProposedAction(); 371 event->acceptProposedAction();
372 */ 372 */

mercurial