Changeset View
Changeset View
Standalone View
Standalone View
layers/tempImage/kpTempImage.cpp
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 70 | : m_isBrush (rhs.m_isBrush), | |||
---|---|---|---|---|---|
76 | m_userData (rhs.m_userData) | 76 | m_userData (rhs.m_userData) | ||
77 | { | 77 | { | ||
78 | } | 78 | } | ||
79 | 79 | | |||
80 | //--------------------------------------------------------------------- | 80 | //--------------------------------------------------------------------- | ||
81 | 81 | | |||
82 | kpTempImage &kpTempImage::operator= (const kpTempImage &rhs) | 82 | kpTempImage &kpTempImage::operator= (const kpTempImage &rhs) | ||
83 | { | 83 | { | ||
84 | if (this == &rhs) | 84 | if (this == &rhs) { | ||
85 | return *this; | 85 | return *this; | ||
86 | } | ||||
86 | 87 | | |||
87 | m_isBrush = rhs.m_isBrush; | 88 | m_isBrush = rhs.m_isBrush; | ||
88 | m_renderMode = rhs.m_renderMode; | 89 | m_renderMode = rhs.m_renderMode; | ||
89 | m_topLeft = rhs.m_topLeft; | 90 | m_topLeft = rhs.m_topLeft; | ||
90 | m_image = rhs.m_image; | 91 | m_image = rhs.m_image; | ||
91 | m_width = rhs.m_width; | 92 | m_width = rhs.m_width; | ||
92 | m_height = rhs.m_height; | 93 | m_height = rhs.m_height; | ||
93 | m_userFunction = rhs.m_userFunction; | 94 | m_userFunction = rhs.m_userFunction; | ||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 152 | { | |||
152 | return m_isBrush ? static_cast<bool> (vm->viewUnderCursor ()) : true; | 153 | return m_isBrush ? static_cast<bool> (vm->viewUnderCursor ()) : true; | ||
153 | } | 154 | } | ||
154 | 155 | | |||
155 | //--------------------------------------------------------------------- | 156 | //--------------------------------------------------------------------- | ||
156 | 157 | | |||
157 | // public | 158 | // public | ||
158 | QRect kpTempImage::rect () const | 159 | QRect kpTempImage::rect () const | ||
159 | { | 160 | { | ||
160 | return QRect (m_topLeft.x (), m_topLeft.y (), | 161 | return {m_topLeft.x (), m_topLeft.y (), m_width, m_height}; | ||
161 | m_width, m_height); | | |||
162 | } | 162 | } | ||
163 | 163 | | |||
164 | //--------------------------------------------------------------------- | 164 | //--------------------------------------------------------------------- | ||
165 | 165 | | |||
166 | // public | 166 | // public | ||
167 | int kpTempImage::width () const | 167 | int kpTempImage::width () const | ||
168 | { | 168 | { | ||
169 | return m_width; | 169 | return m_width; | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |