61 #include "QtBaseViewer.hh" 78 QDrag * drag =
new QDrag(
this );
79 QMimeData * mime_data =
new QMimeData();
81 mime_data->setText( view );
82 drag->setMimeData( mime_data );
92 if ( _event->mimeData()->hasFormat(
"text/plain") )
93 _event->acceptProposedAction();
103 if ( _event->source() != this )
105 QString view( _event->mimeData()->text() );
107 _event->acceptProposedAction();
virtual void startDrag()
drag & drop for modelview copying
void encodeView(QString &_view)
convert current view to text representation
void dragEnterEvent(QDragEnterEvent *_event)
virtual void glDropEvent(QDropEvent *_event)
drag & drop for modelview copying
void dropEvent(QDropEvent *_event)
Namespace providing different geometric functions concerning angles.
virtual void glDragEnterEvent(QDragEnterEvent *_event)
drag & drop for modelview copying
bool decodeView(const QString &_view)