[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Fri May 14 00:42:22 CEST 2004
CVS commit by arwalker:
Check drop object type.
M +8 -4 kstviewwidget.cpp 1.23
--- kdeextragear-2/kst/kst/kstviewwidget.cpp #1.22:1.23
@@ -173,5 +173,4 @@ void KstViewWidget::paintEvent(QPaintEve
void KstViewWidget::dragEnterEvent(QDragEnterEvent *e) {
- // FIXME: Draw a nice bullseye :)
if (e->provides(KstPlotDrag::mimeType())) {
if (e->source() == this) {
@@ -184,6 +183,7 @@ void KstViewWidget::dragEnterEvent(QDrag
}
} else {
- QWidget::dragEnterEvent(e);
+ e->accept(false);
}
+ QWidget::dragEnterEvent(e);
}
@@ -193,7 +193,11 @@ void KstViewWidget::dragMoveEvent(QDragM
e->accept(false);
} else {
- // e->accept(true); FIXME: check mimetype etc
- QWidget::dragMoveEvent(e);
+ if (e->provides(KstPlotDrag::mimeType())) {
+ e->accept(true);
+ } else {
+ e->accept(false);
+ }
}
+ QWidget::dragMoveEvent(e);
}
More information about the Kst
mailing list