[Kst] branches/work/kst/kst1kde4/kst/src/libkstapp
Zongyi Zhang
freebody.kst at gmail.com
Tue Apr 20 01:44:42 CEST 2010
SVN commit 1116644 by zhang:
continue kst1kde4
M +3 -3 kstviewwidget.cpp
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstviewwidget.cpp #1116643:1116644
@@ -393,7 +393,7 @@
if (vo) {
vo->dragEnterEvent(this, e);
} else {
-// xxx e->accept(false);
+ e->setAccepted(false);
}
}
@@ -403,13 +403,13 @@
void KstViewWidget::dragMoveEvent(QDragMoveEvent *e) {
if (_dragEnabled && e->provides(PlotMimeSource::mimeType())) {
-// xxx e->accept(true);
+ e->setAccepted(true);
} else if (_view->viewMode() != KstTopLevelView::LayoutMode) {
KstViewObjectPtr vo = findChildFor(e->pos());
if (vo) {
vo->dragMoveEvent(this, e);
} else {
-// xxx e->accept(false);
+ e->setAccepted(false);
}
}
QWidget::dragMoveEvent(e);
More information about the Kst
mailing list