Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/widgets/kis_scratch_pad.cpp
Show First 20 Lines • Show All 251 Lines • ▼ Show 20 Line(s) | |||||
252 | { | 252 | { | ||
253 | Q_UNUSED(event); | 253 | Q_UNUSED(event); | ||
254 | setCursor(m_cursor); | 254 | setCursor(m_cursor); | ||
255 | } | 255 | } | ||
256 | 256 | | |||
257 | void KisScratchPad::pick(KoPointerEvent *event) | 257 | void KisScratchPad::pick(KoPointerEvent *event) | ||
258 | { | 258 | { | ||
259 | KoColor color; | 259 | KoColor color; | ||
260 | if (KisToolUtils::pick(m_paintLayer->projection(), event->point.toPoint(), &color)) { | 260 | if (KisToolUtils::pickColor(color, m_paintLayer->projection(), event->point.toPoint())) { | ||
261 | emit colorSelected(color); | 261 | emit colorSelected(color); | ||
262 | } | 262 | } | ||
263 | } | 263 | } | ||
264 | 264 | | |||
265 | void KisScratchPad::setOnScreenResolution(qreal scaleX, qreal scaleY) | 265 | void KisScratchPad::setOnScreenResolution(qreal scaleX, qreal scaleY) | ||
266 | { | 266 | { | ||
267 | m_scaleBorderWidth = BORDER_SIZE(qMax(scaleX, scaleY)); | 267 | m_scaleBorderWidth = BORDER_SIZE(qMax(scaleX, scaleY)); | ||
268 | 268 | | |||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |