Changeset View
Changeset View
Standalone View
Standalone View
layers/tempImage/kpTempImage.cpp
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Line(s) | 142 | { | |||
---|---|---|---|---|---|
143 | return m_userData; | 143 | return m_userData; | ||
144 | } | 144 | } | ||
145 | 145 | | |||
146 | //--------------------------------------------------------------------- | 146 | //--------------------------------------------------------------------- | ||
147 | 147 | | |||
148 | // public | 148 | // public | ||
149 | bool kpTempImage::isVisible (const kpViewManager *vm) const | 149 | bool kpTempImage::isVisible (const kpViewManager *vm) const | ||
150 | { | 150 | { | ||
151 | return m_isBrush ? (bool) vm->viewUnderCursor () : true; | 151 | return m_isBrush ? static_cast<bool> (vm->viewUnderCursor ()) : true; | ||
152 | } | 152 | } | ||
153 | 153 | | |||
154 | //--------------------------------------------------------------------- | 154 | //--------------------------------------------------------------------- | ||
155 | 155 | | |||
156 | // public | 156 | // public | ||
157 | QRect kpTempImage::rect () const | 157 | QRect kpTempImage::rect () const | ||
158 | { | 158 | { | ||
159 | return QRect (m_topLeft.x (), m_topLeft.y (), | 159 | return QRect (m_topLeft.x (), m_topLeft.y (), | ||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |