blob: 8c59d1c4665c7f3e9454a359ba9df64c9705965b (
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
|
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "dobject.h"
namespace qmt {
class QMT_EXPORT DItem : public DObject
{
public:
DItem();
~DItem() override;
QString variety() const { return m_variety; }
void setVariety(const QString &variety);
QString shape() const { return m_shape; }
void setShape(const QString &shape);
bool isShapeEditable() const { return m_isShapeEditable; }
void setShapeEditable(bool shapeEditable);
void accept(DVisitor *visitor) override;
void accept(DConstVisitor *visitor) const override;
private:
QString m_variety;
QString m_shape;
bool m_isShapeEditable = true;
};
} // namespace qmt
|