0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

Define code style and format all source file using clang-format-14

except those placed in 3rdparty directories.
This commit is contained in:
Андрей Лухнов
2024-09-04 17:31:16 +03:00
parent c5b9ac265d
commit 0fca7169d3
285 changed files with 19120 additions and 17875 deletions

View File

@@ -1,23 +1,26 @@
#ifndef LRLAYOUTMARKER_H
#define LRLAYOUTMARKER_H
#include <QGraphicsItem>
#include "lrbanddesignintf.h"
namespace LimeReport{
#include <QGraphicsItem>
class LayoutMarker : public 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 *);
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();}
qreal width() { return m_rect.width(); }
qreal height() { return m_rect.height(); }
protected:
void mousePressEvent(QGraphicsSceneMouseEvent *event);
void mousePressEvent(QGraphicsSceneMouseEvent* event);
private:
QRectF m_rect;
QColor m_color;