blob: 6da64f6d94a48f91cca505e463c690d6a4a9d363 (
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
38
39
40
41
42
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <rewriterview.h>
#include <model/modeltotextmerger.h>
namespace QmlDesigner {
namespace Internal {
class TestModelToTextMerger : public ModelToTextMerger
{
public:
bool isNodeScheduledForRemoval(const ModelNode &node) const;
bool isNodeScheduledForAddition(const ModelNode &node) const;
VariantProperty findAddedVariantProperty(const VariantProperty &property) const;
};
} // Internal
class TestRewriterView : public RewriterView
{
Q_OBJECT
public:
TestRewriterView(QObject *parent = 0,
DifferenceHandling differenceHandling = RewriterView::Validate);
Internal::TestModelToTextMerger *modelToTextMerger() const;
Internal::TextToModelMerger *textToModelMerger() const;
bool isModificationGroupActive() const;
void setModificationGroupActive(bool active);
void applyModificationGroupChanges();
using RewriterView::auxiliaryDataAsQML;
};
} // QmlDesigner
|