Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/qpainter/scene_qpainter.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | //**************************************** | 48 | //**************************************** | ||
49 | SceneQPainter *SceneQPainter::createScene(QObject *parent) | 49 | SceneQPainter *SceneQPainter::createScene(QObject *parent) | ||
50 | { | 50 | { | ||
51 | QScopedPointer<QPainterBackend> backend(kwinApp()->platform()->createQPainterBackend()); | 51 | QScopedPointer<QPainterBackend> backend(kwinApp()->platform()->createQPainterBackend()); | ||
52 | if (backend.isNull()) { | 52 | if (backend.isNull()) { | ||
53 | return nullptr; | 53 | return nullptr; | ||
54 | } | 54 | } | ||
55 | if (backend->isFailed()) { | 55 | if (backend->isFailed()) { | ||
56 | return NULL; | 56 | return nullptr; | ||
57 | } | 57 | } | ||
58 | return new SceneQPainter(backend.take(), parent); | 58 | return new SceneQPainter(backend.take(), parent); | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | SceneQPainter::SceneQPainter(QPainterBackend *backend, QObject *parent) | 61 | SceneQPainter::SceneQPainter(QPainterBackend *backend, QObject *parent) | ||
62 | : Scene(parent) | 62 | : Scene(parent) | ||
63 | , m_backend(backend) | 63 | , m_backend(backend) | ||
64 | , m_painter(new QPainter()) | 64 | , m_painter(new QPainter()) | ||
▲ Show 20 Lines • Show All 814 Lines • Show Last 20 Lines |