mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 13:41:16 +01:00
24 lines
485 B
C
24 lines
485 B
C
|
#ifndef GRIDITEM_H
|
||
|
#define GRIDITEM_H
|
||
|
|
||
|
#include <QGraphicsItem>
|
||
|
|
||
|
class GridItem : public QGraphicsItem
|
||
|
{
|
||
|
public:
|
||
|
GridItem(QGraphicsItem *parent = 0);
|
||
|
|
||
|
QRectF boundingRect() const {return _boundingRect;}
|
||
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||
|
QWidget *widget);
|
||
|
|
||
|
void setTicks(const QList<qreal> &x, const QList<qreal> &y);
|
||
|
void setSize(const QSizeF &size);
|
||
|
|
||
|
private:
|
||
|
QRectF _boundingRect;
|
||
|
QList<qreal> _xTicks, _yTicks;
|
||
|
};
|
||
|
|
||
|
#endif // GRIDITEM_H
|