aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/modelinglib/qmt/diagram_scene/parts/stereotypesitem.h
blob: 3c20ea11cd33ea975b7fe526659f64f45df9df8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <QGraphicsSimpleTextItem>
#include <QList>

namespace qmt {

class StereotypesItem : public QGraphicsSimpleTextItem
{
public:
    explicit StereotypesItem(QGraphicsItem *parent = nullptr);
    ~StereotypesItem() override;

    void setStereotypes(const QList<QString> &stereotypes);

    static QString format(const QList<QString> &stereotypes);
};

} // namespace qmt