mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
[libcalamares] Move 3rd party code to separate dir
This commit is contained in:
parent
05bcf4e853
commit
47dbf9ab0c
4 changed files with 0 additions and 0 deletions
47
3rdparty/qjsonitem.h
vendored
Normal file
47
3rdparty/qjsonitem.h
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0+
|
||||
* License-Filename: LICENSES/GPLv3+-QJsonModel
|
||||
*/
|
||||
|
||||
#ifndef JSONITEM_H
|
||||
#define JSONITEM_H
|
||||
#include <QtCore>
|
||||
#include <QJsonValue>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonObject>
|
||||
class QJsonTreeItem
|
||||
{
|
||||
public:
|
||||
QJsonTreeItem(QJsonTreeItem * parent = nullptr);
|
||||
~QJsonTreeItem();
|
||||
void appendChild(QJsonTreeItem * item);
|
||||
QJsonTreeItem *child(int row);
|
||||
QJsonTreeItem *parent();
|
||||
int childCount() const;
|
||||
int row() const;
|
||||
void setKey(const QString& key);
|
||||
void setValue(const QString& value);
|
||||
void setType(const QJsonValue::Type& type);
|
||||
QString key() const;
|
||||
QString value() const;
|
||||
QJsonValue::Type type() const;
|
||||
|
||||
|
||||
static QJsonTreeItem* load(const QJsonValue& value, QJsonTreeItem * parent = nullptr);
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
private:
|
||||
QString mKey;
|
||||
QString mValue;
|
||||
QJsonValue::Type mType;
|
||||
|
||||
QList<QJsonTreeItem*> mChilds;
|
||||
QJsonTreeItem * mParent;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // JSONITEM_H
|
Loading…
Add table
Add a link
Reference in a new issue