Changeset View
Changeset View
Standalone View
Standalone View
layers/selections/text/kpTextStyle.cpp
1 | #include <utility> | ||||
---|---|---|---|---|---|
2 | | ||||
1 | 3 | | |||
2 | /* | 4 | /* | ||
3 | Copyright (c) 2003-2007 Clarence Dang <dang@kde.org> | 5 | Copyright (c) 2003-2007 Clarence Dang <dang@kde.org> | ||
4 | All rights reserved. | 6 | All rights reserved. | ||
5 | 7 | | |||
6 | Redistribution and use in source and binary forms, with or without | 8 | Redistribution and use in source and binary forms, with or without | ||
7 | modification, are permitted provided that the following conditions | 9 | modification, are permitted provided that the following conditions | ||
8 | are met: | 10 | are met: | ||
Show All 27 Lines | |||||
36 | kpTextStyle::kpTextStyle () | 38 | kpTextStyle::kpTextStyle () | ||
37 | : m_fontSize (0), | 39 | : m_fontSize (0), | ||
38 | m_isBold (false), m_isItalic (false), | 40 | m_isBold (false), m_isItalic (false), | ||
39 | m_isUnderline (false), m_isStrikeThru (false), | 41 | m_isUnderline (false), m_isStrikeThru (false), | ||
40 | m_isBackgroundOpaque (true) | 42 | m_isBackgroundOpaque (true) | ||
41 | { | 43 | { | ||
42 | } | 44 | } | ||
43 | 45 | | |||
44 | kpTextStyle::kpTextStyle (const QString &fontFamily, | 46 | kpTextStyle::kpTextStyle (QString fontFamily, | ||
45 | int fontSize, | 47 | int fontSize, | ||
46 | bool isBold, bool isItalic, | 48 | bool isBold, bool isItalic, | ||
47 | bool isUnderline, bool isStrikeThru, | 49 | bool isUnderline, bool isStrikeThru, | ||
48 | const kpColor &fcolor, const kpColor &bcolor, | 50 | const kpColor &fcolor, const kpColor &bcolor, | ||
49 | bool isBackgroundOpaque) | 51 | bool isBackgroundOpaque) | ||
50 | : m_fontFamily (fontFamily), | 52 | : m_fontFamily (std::move(fontFamily)), | ||
51 | m_fontSize (fontSize), | 53 | m_fontSize (fontSize), | ||
52 | m_isBold (isBold), m_isItalic (isItalic), | 54 | m_isBold (isBold), m_isItalic (isItalic), | ||
53 | m_isUnderline (isUnderline), m_isStrikeThru (isStrikeThru), | 55 | m_isUnderline (isUnderline), m_isStrikeThru (isStrikeThru), | ||
54 | m_foregroundColor (fcolor), m_backgroundColor (bcolor), | 56 | m_foregroundColor (fcolor), m_backgroundColor (bcolor), | ||
55 | m_isBackgroundOpaque (isBackgroundOpaque) | 57 | m_isBackgroundOpaque (isBackgroundOpaque) | ||
56 | { | 58 | { | ||
57 | } | 59 | } | ||
58 | 60 | | |||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |