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();
Namespace providing different geometric functions concerning angles.
void dropEvent(QDropEvent *_event)
virtual void glDropEvent(QDropEvent *_event)
drag & drop for modelview copying
void dragEnterEvent(QDragEnterEvent *_event)
virtual void glDragEnterEvent(QDragEnterEvent *_event)
drag & drop for modelview copying
void encodeView(QString &_view)
convert current view to text representation
bool decodeView(const QString &_view)
virtual void startDrag()
drag & drop for modelview copying