0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-01 03:29:49 +03:00

Vertical Layout has been added

This commit is contained in:
Arin Alexander
2018-06-21 14:29:00 +03:00
parent 1a189054f7
commit 5b818a4a15
22 changed files with 1029 additions and 467 deletions

View File

@@ -0,0 +1,28 @@
#ifndef LRLAYOUTMARKER_H
#define LRLAYOUTMARKER_H
#include <QGraphicsItem>
#include "lrbanddesignintf.h"
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