0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 08:28: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

@@ -30,29 +30,36 @@
#ifndef LRSUBITEMPARENTPROPITEM_H
#define LRSUBITEMPARENTPROPITEM_H
#include "lritemdesignintf.h"
#include "lrobjectpropitem.h"
#include <QMap>
#include "lrobjectpropitem.h"
#include "lritemdesignintf.h"
namespace LimeReport{
class ItemLocationPropItem : public LimeReport::ObjectPropItem{
namespace LimeReport {
class ItemLocationPropItem: public LimeReport::ObjectPropItem {
Q_OBJECT
public:
ItemLocationPropItem():ObjectPropItem(){}
ItemLocationPropItem(QObject* object, ObjectsList* objects, const QString& name, const QString& displayName, const QVariant& value, ObjectPropItem* parent, bool readonly);
QWidget* createProperyEditor(QWidget *parent) const;
ItemLocationPropItem(): ObjectPropItem() { }
ItemLocationPropItem(QObject* object, ObjectsList* objects, const QString& name,
const QString& displayName, const QVariant& value, ObjectPropItem* parent,
bool readonly);
QWidget* createProperyEditor(QWidget* parent) const;
QString displayValue() const;
void setPropertyEditorData(QWidget *, const QModelIndex &) const;
void setModelData(QWidget *, QAbstractItemModel *, const QModelIndex &);
void setPropertyEditorData(QWidget*, const QModelIndex&) const;
void setModelData(QWidget*, QAbstractItemModel*, const QModelIndex&);
private slots:
void slotLocationChanged(const QString& text);
private:
QString locationToString(LimeReport::ItemDesignIntf::LocationType location) const;
QString locationToString(int location) const {return locationToString(static_cast<LimeReport::ItemDesignIntf::LocationType>(location));}
QString locationToString(int location) const
{
return locationToString(static_cast<LimeReport::ItemDesignIntf::LocationType>(location));
}
LimeReport::ItemDesignIntf::LocationType stringToLocation(const QString& locationName);
private:
QMap<QString,LimeReport::ItemDesignIntf::LocationType> m_locationMap;
QMap<QString, LimeReport::ItemDesignIntf::LocationType> m_locationMap;
};
}
} // namespace LimeReport
#endif // LRSUBITEMPARENTPROPITEM_H