[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Sat Sep 13 00:00:42 CEST 2003
CVS commit by staikos:
minor glitch fixes and polishing for label drags
drags now work quite well I think
M +3 -1 kstview.cpp 1.33
--- kdeextragear-2/kst/kst/kstview.cpp #1.32:1.33
@@ -370,4 +370,5 @@ void KstView::mouseMoveEvent(QMouseEvent
QPainter p(&pm);
label->draw(p, 0, 0, true);
+ label->extents = oldExtents; // restore them incase the drag is cancelled
QDragObject *d = new KstLabelDrag(this, plot_num, i_label, _draggablePoint - plot->GetWinRegion().topLeft() - oldExtents.topLeft(), pm);
d->dragMove();
@@ -670,5 +671,5 @@ void KstView::dropEvent(QDropEvent *e) {
for (int i = 0; i < plotCount; i++) {
plotPtr = KST::plotList.at(i);
- if (plotPtr->GetWinRegion().contains(e->pos())) {
+ if (plotPtr->GetPlotRegion().contains(e->pos())) {
posplot = i;
break;
@@ -678,4 +679,5 @@ void KstView::dropEvent(QDropEvent *e) {
if (posplot == -1) {
e->accept(false);
+ return;
}
More information about the Kst
mailing list