Author: aschnell Date: Fri Feb 20 14:55:56 2009 New Revision: 55647 URL: http://svn.opensuse.org/viewcvs/yast?rev=55647&view=rev Log: - renamed variable Modified: trunk/qt-graph/src/QY2Graph.cc trunk/qt-graph/src/QY2Graph.h Modified: trunk/qt-graph/src/QY2Graph.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-graph/src/QY2Graph.cc?rev=55647&r1=55646&r2=55647&view=diff ============================================================================== --- trunk/qt-graph/src/QY2Graph.cc (original) +++ trunk/qt-graph/src/QY2Graph.cc Fri Feb 20 14:55:56 2009 @@ -121,7 +121,7 @@ QY2Graph::gToQ(const point& p, bool upside_down) const { QPointF tmp(p.x, p.y); - return upside_down ? QPointF(tmp.x(), rect.height() - tmp.y()) : QPointF(tmp.x(), -tmp.y()); + return upside_down ? QPointF(tmp.x(), graphRect.height() - tmp.y()) : QPointF(tmp.x(), -tmp.y()); } @@ -129,7 +129,7 @@ QY2Graph::gToQ(const pointf& p, bool upside_down) const { QPointF tmp(p.x, p.y); - return upside_down ? QPointF(tmp.x(), rect.height() - tmp.y()) : QPointF(tmp.x(), -tmp.y()); + return upside_down ? QPointF(tmp.x(), graphRect.height() - tmp.y()) : QPointF(tmp.x(), -tmp.y()); } @@ -337,8 +337,8 @@ } // don't use gToQ here since it adjusts the values - rect = QRectF(GD_bb(graph).LL.x, GD_bb(graph).LL.y, GD_bb(graph).UR.x, GD_bb(graph).UR.y); - scene->setSceneRect(rect.adjusted(-5, -5, +5, +5)); + graphRect = QRectF(GD_bb(graph).LL.x, GD_bb(graph).LL.y, GD_bb(graph).UR.x, GD_bb(graph).UR.y); + scene->setSceneRect(graphRect.adjusted(-5, -5, +5, +5)); scene->setBackgroundBrush(aggetToQColor(graph, "bgcolor", Qt::white)); Modified: trunk/qt-graph/src/QY2Graph.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-graph/src/QY2Graph.h?rev=55647&r1=55646&r2=55647&view=diff ============================================================================== --- trunk/qt-graph/src/QY2Graph.h (original) +++ trunk/qt-graph/src/QY2Graph.h Fri Feb 20 14:55:56 2009 @@ -68,7 +68,7 @@ QGraphicsScene* scene; QSignalMapper* signalMapper; - QRectF rect; + QRectF graphRect; QPointF gToQ(const point& p, bool upside_down = true) const; QPointF gToQ(const pointf& p, bool upside_down = true) const; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org