summaryrefslogtreecommitdiff
path: root/src/plugins/scxmleditor/plugin_interface/attributeitemdelegate.cpp
blob: a516b6c02ce527117d47a5535f7b8790251f7302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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

#include "attributeitemdelegate.h"

using namespace ScxmlEditor::PluginInterface;

AttributeItemDelegate::AttributeItemDelegate(QObject *parent)
    : QStyledItemDelegate(parent)
{
}

void AttributeItemDelegate::setTag(ScxmlTag *tag)
{
    m_tag = tag;
}

ScxmlTag *AttributeItemDelegate::tag() const
{
    return m_tag;
}