00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef POSITION_INDICATOR_H
00023 #define POSITION_INDICATOR_H
00024
00025 #include "ViewItem.h"
00026 #include <QPixmap>
00027
00028 class PositionIndicator : public ViewItem
00029 {
00030 Q_OBJECT
00031
00032 public:
00033 PositionIndicator(ViewItem* parent);
00034 ~PositionIndicator() {}
00035
00036 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
00037 void calculate_bounding_rect();
00038 void set_position(int x, int y);
00039
00040 void set_value(const QString& value);
00041
00042 private:
00043 QString m_value;
00044 QPixmap m_background;
00045 };
00046
00047 #endif
00048
00049