blob: 1bb0abad46794716340f2e15ba45180db9e3ba72 (
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
|
// 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 "scxmldocument.h"
#include "scxmltag.h"
#include <QAbstractTableModel>
#include <QPointer>
namespace ScxmlEditor {
namespace PluginInterface {
class AttributeItemModel : public QAbstractTableModel
{
Q_OBJECT
public:
AttributeItemModel(QObject *parent = nullptr);
virtual void setTag(ScxmlTag *tag);
ScxmlTag *tag() const;
protected:
QPointer<ScxmlDocument> m_document;
QPointer<ScxmlTag> m_tag;
};
} // namespace PluginInterface
} // namespace ScxmlEditor
|