Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void CircuitView::dragEnterEvent ( QDragEnterEvent *  event  )  [protected, virtual]

Reinherit to allow different types of items to be dragged in.

Reimplemented from ItemView.

Definition at line 83 of file circuitview.cpp.

References ItemView::createDragItem(), and ItemView::dragEnterEvent().

      if ( e->isAccepted() )
      bool acceptable = e->provides("ktechlab/component") || e->provides("ktechlab/subcircuit");
      if ( !acceptable )
      e->accept( true );
      createDragItem( e );

Generated by  Doxygen 1.6.0   Back to index