23 #include "internal/QmitkCommonActivator.h"
27 #include <QDragEnterEvent>
30 class QmitkDnDFrameWidgetPrivate
44 bool GetOpenEditor()
const
49 return prefs->GetBool(
"OpenEditor",
true);
57 : QWidget(parent), d(new QmitkDnDFrameWidgetPrivate())
66 void QmitkDnDFrameWidget::dragEnterEvent( QDragEnterEvent *event )
68 event->acceptProposedAction();
71 void QmitkDnDFrameWidget::dropEvent( QDropEvent * event )
74 QList<QUrl> fileNames =
event->mimeData()->urls();
75 if (fileNames.empty())
78 QStringList fileNames2;
79 foreach(QUrl url, fileNames)
81 fileNames2.push_back(url.toLocalFile());
virtual SmartPointer< IPreferences > GetSystemPreferences()=0
Implements transparent reference counting.
static void LoadFiles(const QStringList &fileNames, berry::IWorkbenchWindow::Pointer wnd, bool openEditor=true)
berry::SmartPointer< Self > Pointer