[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Fri Apr 8 03:48:44 CEST 2005
CVS commit by arwalker:
Redraw data mode marker correctly after a text label move operation. Add const.
M +4 -4 kst2dplot.cpp 1.389
M +1 -1 kst2dplot.h 1.149
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.388:1.389
@@ -3192,5 +3192,5 @@ void Kst2DPlot::setHasFocus(bool has) {
-void Kst2DPlot::updateMousePos(QPoint pos) {
+void Kst2DPlot::updateMousePos(const QPoint& pos) {
QString xlabel, ylabel;
QRect pr = GetPlotRegion();
@@ -4746,4 +4746,6 @@ void Kst2DPlot::dropEvent(QWidget *view,
bool accept = false;
+ _mouse.tracker = e->pos();
+
if (e->provides("application/x-kst-label-number")) {
QDataStream ds(e->encodedData("application/x-kst-label-number"), IO_ReadOnly);
@@ -4824,6 +4826,4 @@ void Kst2DPlot::dropEvent(QWidget *view,
}
- _mouse.tracker = e->pos();
-
if (accept) {
KstApp::inst()->document()->setModified();
--- kdeextragear-2/kst/kst/kst2dplot.h #1.148:1.149
@@ -335,5 +335,5 @@ private:
template<class T> void updateTiedPlots(bool (Kst2DPlot::*method)(T), T arg);
- void updateMousePos(QPoint pos);
+ void updateMousePos(const QPoint& pos);
void highlightNearestDataPoint(bool repaint, QWidget *view, const QPoint& pos);
void updateTieBox(QPainter&);
More information about the Kst
mailing list