--- /dev/null
+#include "gauge.h"
+#include "qgraphicswidget.h"
+#include "QGraphicsItem"
+#include <QPainter>
+#include <QDebug>
+
+Gauge::Gauge(QGraphicsItem *parent) :
+ QGraphicsWidget(parent)
+{
+ m_textSize=20;
+ m_tickMinor=0;
+ m_scale=1.0;
+}
+#if 1
+void Gauge::paint(QPainter *painter,
+ const QStyleOptionGraphicsItem *option,
+ QWidget *widget)
+ {
+// qDebug() << "Gauge::paint";
+ painter->setBrush(Qt::blue);
+ painter->drawRoundedRect(QRectF(0.0,0.0, size().width(),size().height()), 5,5);
+ }
+#endif
+void Gauge::setValue(float val_)
+{
+ m_value=val_;
+ update(boundingRect()); // Value updated, schedule redtaw
+};
+float Gauge::value()
+{
+ return m_value;
+};
+void Gauge::setValue2(float val_)
+{
+ m_value2=val_;
+ update(boundingRect()); // Value updated, schedule redtaw
+};
+float Gauge::value2()
+{
+ return m_value2;
+};
+
+
+QRectF Gauge::boundingRect() const
+ {
+// qDebug() << "GaugeBand::boundingRect()" << size().width() << size().height();
+ return QRectF(0.0,0.0,size().width(),size().height());
+ }