mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-23 16:22:58 +03:00
0fca7169d3
except those placed in 3rdparty directories.
32 lines
804 B
C++
32 lines
804 B
C++
#ifndef LRLAYOUTMARKER_H
|
|
#define LRLAYOUTMARKER_H
|
|
|
|
#include "lrbanddesignintf.h"
|
|
|
|
#include <QGraphicsItem>
|
|
|
|
namespace LimeReport {
|
|
|
|
class LayoutMarker: public QGraphicsItem {
|
|
public:
|
|
explicit LayoutMarker(BaseDesignIntf* layout, QGraphicsItem* parent = 0);
|
|
virtual QRectF boundingRect() const { return m_rect; }
|
|
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*);
|
|
void setHeight(qreal height);
|
|
void setWidth(qreal width);
|
|
void setColor(QColor color);
|
|
qreal width() { return m_rect.width(); }
|
|
qreal height() { return m_rect.height(); }
|
|
|
|
protected:
|
|
void mousePressEvent(QGraphicsSceneMouseEvent* event);
|
|
|
|
private:
|
|
QRectF m_rect;
|
|
QColor m_color;
|
|
BaseDesignIntf* m_layout;
|
|
};
|
|
|
|
} // namespace LimeReport
|
|
#endif // LRLAYOUTMARKER_H
|