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,28 +1,29 @@
#ifndef LRVERTICALLAYOUT_H
#define LRVERTICALLAYOUT_H
#include "lrabstractlayout.h"
#include "lritemdesignintf.h"
#include "lrlayoutmarker.h"
#include "lrabstractlayout.h"
namespace LimeReport{
namespace LimeReport {
class VerticalLayout : public AbstractLayout
{
class VerticalLayout: public AbstractLayout {
Q_OBJECT
public:
friend class BaseDesignIntf;
VerticalLayout(QObject *owner = 0, QGraphicsItem *parent = 0);
VerticalLayout(QObject* owner = 0, QGraphicsItem* parent = 0);
~VerticalLayout();
// BaseDesignIntf interface
BaseDesignIntf*createSameTypeItem(QObject* owner, QGraphicsItem* parent);
bool isSplittable() const { return true;}
BaseDesignIntf* createSameTypeItem(QObject* owner, QGraphicsItem* parent);
bool isSplittable() const { return true; }
protected:
void updateLayoutSize();
void relocateChildren();
bool canBeSplitted(int height) const;
BaseDesignIntf* cloneUpperPart(int height, QObject* owner=0, QGraphicsItem* parent=0);
BaseDesignIntf* cloneBottomPart(int height, QObject *owner=0, QGraphicsItem *parent=0);
BaseDesignIntf* cloneUpperPart(int height, QObject* owner = 0, QGraphicsItem* parent = 0);
BaseDesignIntf* cloneBottomPart(int height, QObject* owner = 0, QGraphicsItem* parent = 0);
private:
void sortChildren();
void divideSpace();