summaryrefslogtreecommitdiff
path: root/src/libs/modelinglib/qmt/diagram/dcomponent.h
blob: 6cb4e6c12e1daa429ae8a45a1a5e676edaaa1876 (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
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "dobject.h"

namespace qmt {

class QMT_EXPORT DComponent : public DObject
{
public:
    DComponent();
    ~DComponent() override;

    bool isPlainShape() const { return m_isPlainShape; }
    void setPlainShape(bool planeShape);

    void accept(DVisitor *visitor) override;
    void accept(DConstVisitor *visitor) const override;

private:
    bool m_isPlainShape = false;
};

} // namespace qmt