22 #include <QStringList>
25 #include "internal/org_mitk_gui_qt_application_Activator.h"
33 class QmitkDefaultDropTargetListenerPrivate
47 bool GetOpenEditor()
const
52 return prefs->GetBool(
"OpenEditor",
true);
59 :
berry::IDropTargetListener(), d(new QmitkDefaultDropTargetListenerPrivate())
74 qDebug() <<
event->mimeData()->formats();
75 qDebug() <<
event->mimeData()->text();
77 QList<QUrl> fileNames =
event->mimeData()->urls();
78 if (fileNames.empty())
81 QStringList fileNames2;
82 foreach(QUrl url, fileNames)
84 fileNames2.push_back(url.toLocalFile());
virtual SmartPointer< IPreferences > GetSystemPreferences()=0
Implements transparent reference counting.
QmitkDefaultDropTargetListener()
static void LoadFiles(const QStringList &fileNames, berry::IWorkbenchWindow::Pointer wnd, bool openEditor=true)
void DropEvent(QDropEvent *event) override
Events::Types GetDropTargetEventTypes() const override
berry::SmartPointer< Self > Pointer
virtual ~QmitkDefaultDropTargetListener()