7 } |
7 } |
8 |
8 |
9 class modelobjects::ErrorLine : public BaseObject |
9 class modelobjects::ErrorLine : public BaseObject |
10 { |
10 { |
11 public: |
11 public: |
12 ErrorLine(QStringView text = u""); |
12 ErrorLine(QStringView text = u"", QStringView message = u""); |
13 QVariant getProperty(Property property) const override; |
13 QVariant getProperty(Property property) const override; |
14 SetPropertyResult setProperty( |
14 SetPropertyResult setProperty( |
15 Property property, |
15 Property property, |
16 const QVariant& value) override; |
16 const QVariant& value) override; |
17 QString textRepresentation() const override; |
17 QString textRepresentation() const override; |
18 QBrush textRepresentationForeground() const override; |
18 QBrush textRepresentationForeground() const override; |
19 QBrush textRepresentationBackground() const override; |
19 QBrush textRepresentationBackground() const override; |
20 private: |
20 private: |
21 QString text; |
21 QString text; |
|
22 QString message; |
22 }; |
23 }; |