blob: f6df7e815b756e357515af3c3fe63b4b7ee3d883 (
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
33
34
35
36
|
// Copyright (C) 2017 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "delement.h"
namespace qmt {
class QMT_EXPORT DSwimlane : public DElement
{
public:
DSwimlane();
DSwimlane(const DSwimlane &rhs);
~DSwimlane() override;
DSwimlane &operator=(const DSwimlane &rhs);
Uid modelUid() const override { return Uid::invalidUid(); }
QString text() const { return m_text; }
void setText(const QString &text);
bool isHorizontal() const { return m_horizontal; }
void setHorizontal(bool horizontal);
qreal pos() const { return m_pos; }
void setPos(qreal pos);
void accept(DVisitor *visitor) override;
void accept(DConstVisitor *visitor) const override;
private:
QString m_text;
bool m_horizontal = false; // false: vertical, true: horizontal
qreal m_pos = 0.0;
};
} // namespace qmt
|