55 #include "QtBaseViewer.hh" 72 QDrag * drag =
new QDrag(
this );
73 QMimeData * mime_data =
new QMimeData();
75 mime_data->setText( view );
76 drag->setMimeData( mime_data );
86 if ( _event->mimeData()->hasFormat(
"text/plain") )
87 _event->acceptProposedAction();
97 if ( _event->source() != this )
99 QString view( _event->mimeData()->text() );
101 _event->acceptProposedAction();
void dropEvent(QDropEvent *_event)
Namespace providing different geometric functions concerning angles.
void dragEnterEvent(QDragEnterEvent *_event)
virtual void startDrag()
drag & drop for modelview copying
void encodeView(QString &_view)
convert current view to text representation
virtual void glDropEvent(QDropEvent *_event)
drag & drop for modelview copying
bool decodeView(const QString &_view)
virtual void glDragEnterEvent(QDragEnterEvent *_event)
drag & drop for modelview copying