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:
@@ -5,20 +5,21 @@
|
||||
#include <QDomDocument>
|
||||
#include <QVector>
|
||||
|
||||
class XmlModel : public QAbstractItemModel
|
||||
{
|
||||
class XmlModel: public QAbstractItemModel {
|
||||
public:
|
||||
XmlModel(QByteArray* data = 0);
|
||||
void setXMLData(QByteArray* data);
|
||||
void parseHeaders();
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent) const;
|
||||
QModelIndex parent(const QModelIndex &child) const;
|
||||
int rowCount(const QModelIndex &parent) const;
|
||||
int columnCount(const QModelIndex &parent) const;
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
QModelIndex index(int row, int column, const QModelIndex& parent) const;
|
||||
QModelIndex parent(const QModelIndex& child) const;
|
||||
int rowCount(const QModelIndex& parent) const;
|
||||
int columnCount(const QModelIndex& parent) const;
|
||||
QVariant data(const QModelIndex& index, int role) const;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
||||
|
||||
private:
|
||||
void initModel();
|
||||
|
||||
private:
|
||||
QDomDocument m_doc;
|
||||
QDomNode m_items;
|
||||
|
||||
Reference in New Issue
Block a user