[Kst] branches/work/kst/portto4/kst/src/libkstapp
Peter Kümmel
syntheticpp at gmx.net
Sat Mar 17 15:52:10 UTC 2012
SVN commit 1286129 by kuemmel:
Don't eat drop events of files (urls).
When accepted it is not passed to the parent.
Qt docu: "The accept flag set with accept(). It is set by default"
http://doc.qt.nokia.com/4.7/qevent.html
M +2 -0 scene.cpp
M +0 -2 view.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/scene.cpp #1286128:1286129
@@ -64,6 +64,8 @@
{
if (MimeDataViewItem::downcast(event->mimeData())) {
event->acceptProposedAction();
+ } else if (event->mimeData()->hasUrls()) {
+ event->ignore();
}
}
--- branches/work/kst/portto4/kst/src/libkstapp/view.cpp #1286128:1286129
@@ -110,8 +110,6 @@
connect(this, SIGNAL(viewModeChanged(View::ViewMode)), PlotItemManager::self(), SLOT(clearFocusedPlots()));
applyDialogDefaultsFill();
-
- setAcceptDrops(false); // Pass event to parent
}
More information about the Kst
mailing list