Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/qpainter/scene_qpainter.cpp
Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Line(s) | |||||
218 | SceneQPainter::Window::Window(SceneQPainter *scene, Toplevel *c) | 218 | SceneQPainter::Window::Window(SceneQPainter *scene, Toplevel *c) | ||
219 | : Scene::Window(c) | 219 | : Scene::Window(c) | ||
220 | , m_scene(scene) | 220 | , m_scene(scene) | ||
221 | { | 221 | { | ||
222 | } | 222 | } | ||
223 | 223 | | |||
224 | SceneQPainter::Window::~Window() | 224 | SceneQPainter::Window::~Window() | ||
225 | { | 225 | { | ||
226 | discardShape(); | | |||
227 | } | 226 | } | ||
228 | 227 | | |||
229 | static void paintSubSurface(QPainter *painter, const QPoint &pos, QPainterWindowPixmap *pixmap) | 228 | static void paintSubSurface(QPainter *painter, const QPoint &pos, QPainterWindowPixmap *pixmap) | ||
230 | { | 229 | { | ||
231 | QPoint p = pos; | 230 | QPoint p = pos; | ||
232 | if (!pixmap->subSurface().isNull()) { | 231 | if (!pixmap->subSurface().isNull()) { | ||
233 | p += pixmap->subSurface()->position(); | 232 | p += pixmap->subSurface()->position(); | ||
234 | } | 233 | } | ||
▲ Show 20 Lines • Show All 667 Lines • Show Last 20 Lines |