Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/canvas/kis_qpainter_canvas.cpp
Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Line(s) | 234 | { | |||
---|---|---|---|---|---|
235 | QSize size(e->size()); | 235 | QSize size(e->size()); | ||
236 | if (size.width() <= 0) { | 236 | if (size.width() <= 0) { | ||
237 | size.setWidth(1); | 237 | size.setWidth(1); | ||
238 | } | 238 | } | ||
239 | if (size.height() <= 0) { | 239 | if (size.height() <= 0) { | ||
240 | size.setHeight(1); | 240 | size.setHeight(1); | ||
241 | } | 241 | } | ||
242 | 242 | | |||
243 | coordinatesConverter()->setCanvasWidgetSize(size); | 243 | coordinatesConverter()->setCanvasWidgetSize(size, devicePixelRatioF()); | ||
244 | m_d->prescaledProjection->notifyCanvasSizeChanged(size); | 244 | m_d->prescaledProjection->notifyCanvasSizeChanged(size); | ||
245 | } | 245 | } | ||
246 | 246 | | |||
247 | void KisQPainterCanvas::slotConfigChanged() | 247 | void KisQPainterCanvas::slotConfigChanged() | ||
248 | { | 248 | { | ||
249 | KisConfig cfg(true); | 249 | KisConfig cfg(true); | ||
250 | 250 | | |||
251 | m_d->checkBrush = QBrush(createCheckersImage()); | 251 | m_d->checkBrush = QBrush(createCheckersImage()); | ||
252 | m_d->scrollCheckers = cfg.scrollCheckers(); | 252 | m_d->scrollCheckers = cfg.scrollCheckers(); | ||
253 | notifyConfigChanged(); | 253 | notifyConfigChanged(); | ||
254 | } | 254 | } | ||
255 | 255 | | |||
256 | bool KisQPainterCanvas::callFocusNextPrevChild(bool next) | 256 | bool KisQPainterCanvas::callFocusNextPrevChild(bool next) | ||
257 | { | 257 | { | ||
258 | return focusNextPrevChild(next); | 258 | return focusNextPrevChild(next); | ||
259 | } | 259 | } |