}
+// This is drawn in Qt coordinates...
void Painter::DrawRoundedRect(QRectF rect, double radiusX, double radiusY)
{
if (!painter)
}
+// This is drawn partially in Cartesian coordinates, and partially in Qt
+// coordinates. The rect itself is in Cartesian but we want to pad it by a set
+// number of pixels.
+void Painter::DrawPaddedRect(QRectF rect)
+{
+ if (!painter)
+ return;
+
+ Vector v1 = CartesianToQtCoords(Vector(rect.x(), rect.y()));
+ Vector v2 = CartesianToQtCoords(Vector(rect.right(), rect.bottom()));
+ QRectF screenRect(QPointF(v1.x, v1.y), QPointF(v2.x, v2.y));
+ screenRect.adjust(-8, 8, 8, -8); // Left/top, right/bottom
+ painter->drawRect(screenRect);
+}
+
+
void Painter::DrawRect(QRectF rect)
{
if (!painter)