[Kst] branches/work/kst/portto4/kst/src/libkstapp
Mike Fenton
mike at staikos.net
Fri Feb 20 22:09:53 CET 2009
SVN commit 929179 by fenton:
Improve debug logging for PlotItem/PlotRenderItem in the update cycle.
M +5 -4 plotitem.cpp
M +1 -1 plotrenderitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.cpp #929178:929179
@@ -33,6 +33,7 @@
#include "sharedaxisboxitem.h"
#include "applicationsettings.h"
+#include "updatemanager.h"
#include "math_kst.h"
@@ -469,18 +470,18 @@
return;
}
#if DEBUG_UPDATE_CYCLE > 1
- qDebug() << "UP - Updating Plot";
+ qDebug() << "\t\tUP - Updating Plot";
#endif
if (xAxis()->axisZoomMode() == PlotAxis::Auto) {
if (yAxis()->axisZoomMode() == PlotAxis::AutoBorder || yAxis()->axisZoomMode() == PlotAxis::Auto
|| yAxis()->axisZoomMode() == PlotAxis::SpikeInsensitive || yAxis()->axisZoomMode() == PlotAxis::MeanCentered) {
#if DEBUG_UPDATE_CYCLE > 1
- qDebug() << "UP - Updating Plot Projection Rect - X and Y Maximum";
+ qDebug() << "\t\t\tUP - Updating Plot Projection Rect - X and Y Maximum";
#endif
setProjectionRect(computedProjectionRect());
} else {
#if DEBUG_UPDATE_CYCLE > 1
- qDebug() << "UP - Updating Plot Projection Rect - X Maximum";
+ qDebug() << "\t\t\tUP - Updating Plot Projection Rect - X Maximum";
#endif
QRectF compute = computedProjectionRect();
setProjectionRect(QRectF(compute.x(),
@@ -490,7 +491,7 @@
}
} else if (yAxis()->axisZoomMode() == PlotAxis::Auto) {
#if DEBUG_UPDATE_CYCLE > 1
- qDebug() << "UP - Updating Plot Projection Rect - Y Maximum";
+ qDebug() << "\t\t\tUP - Updating Plot Projection Rect - Y Maximum";
#endif
QRectF compute = computedProjectionRect();
setProjectionRect(QRectF(projectionRect().x(),
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitem.cpp #929178:929179
@@ -123,7 +123,7 @@
void PlotRenderItem::relationUpdated(ObjectPtr object) {
#if DEBUG_UPDATE_CYCLE > 1
- qDebug() << "UP - Curve update required by Plot for update of" << object->shortName();
+ qDebug() << "\t\t\tUP - Curve update required by Plot for update of" << object->shortName();
#endif
UpdateManager::self()->requestUpdate(object, plotItem());
}
More information about the Kst
mailing list