diff options
Diffstat (limited to 'src/gui/widgets/linepart.h')
-rw-r--r-- | src/gui/widgets/linepart.h | 28 |
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; |