summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/widgets/linepart.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/gui/widgets/linepart.h b/src/gui/widgets/linepart.h
index 1efc37d94..0a934e378 100644
--- a/src/gui/widgets/linepart.h
+++ b/src/gui/widgets/linepart.h
@@ -60,9 +60,35 @@ class LinePart final
{
}
+ LinePart(const LinePart &l) :
+ mX(l.mX),
+ mY(l.mY),
+ mColor(l.mColor),
+ mColor2(l.mColor2),
+ mText(l.mText),
+ mType(l.mType),
+ mImage(l.mImage),
+ mBold(l.mBold)
+ {
+ }
+
+ LinePart &operator=(const LinePart &l)
+ {
+ mX = l.mX;
+ mY = l.mY;
+ mColor = l.mColor;
+ mColor2 = l.mColor2;
+ mText = l.mText;
+ mType = l.mType;
+ mImage = l.mImage;
+ mBold = l.mBold;
+ return *this;
+ }
+
~LinePart();
- int mX, mY;
+ int mX;
+ int mY;
Color mColor;
Color mColor2;
std::string mText;