blob: 5a5c93eff9a6ff86903ebb76b4b4c4c04e9d03f0 (
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
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "attributeitemmodel.h"
namespace ScxmlEditor {
namespace PluginInterface {
class SCAttributeItemModel : public AttributeItemModel
{
Q_OBJECT
public:
SCAttributeItemModel(QObject *parent = nullptr);
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
Qt::ItemFlags flags(const QModelIndex &index) const override;
};
} // namespace PluginInterface
} // namespace ScxmlEditor
|