blob: e76d7f50e4ac6d5443796eca9c07da6604b34da8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <modelnode.h>
namespace QmlDesigner {
class Model;
class DataStoreModelNode
{
public:
DataStoreModelNode();
void reloadModel();
QStringList collectionNames() const;
Model *model() const;
ModelNode modelNode() const;
void setCollectionNames(const QStringList &newCollectionNames);
private:
QString getModelQmlText();
void reset();
void updateDataStoreProperties();
void updateSingletonFile();
ModelPointer m_model;
QStringList m_collectionNames;
QString m_dataRelativePath;
};
} // namespace QmlDesigner
|