[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri Dec 17 00:14:38 CET 2004
CVS commit by staikos:
keep the mouse coordinates in sync
M +10 -1 kst2dplot.cpp 1.329
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.328:1.329
@@ -1951,5 +1951,5 @@ void Kst2DPlot::paint(KstPaintType type,
updateTieBox(p);
- // we might need to redraw the datamode marker.
+ // we might need to draw the datamode marker.
if (!_highlighting) {
KstTopLevelViewPtr tlv = KstApp::inst()->activeView();
@@ -3156,7 +3156,10 @@ void Kst2DPlot::mouseMoveEvent(QWidget *
w->viewObject()->forEachChild<QPainter&>(&KstViewObject::removeFocus, p);
}
+ _mouse.lastLocation = e->pos();
setHasFocus(true);
p.setClipRegion(_lastClipRegion);
updateTieBox(p);
+ } else {
+ _mouse.lastLocation = e->pos();
}
@@ -4541,5 +4544,8 @@ void Kst2DPlot::dropEvent(QWidget *view,
QPainter p(view);
w->view()->forEachChild<QPainter&>(&Kst2DPlot::removeFocus, p);
+ _mouse.lastLocation = e->pos();
setHasFocus(true);
+ } else {
+ _mouse.lastLocation = e->pos();
}
@@ -4580,5 +4586,8 @@ void Kst2DPlot::dropEvent(QWidget *view,
QPainter p(view);
w->view()->forEachChild<QPainter&>(&Kst2DPlot::removeFocus, p);
+ _mouse.lastLocation = e->pos();
setHasFocus(true);
+ } else {
+ _mouse.lastLocation = e->pos();
}
setDirty();
More information about the Kst
mailing list