Changeset View
Changeset View
Standalone View
Standalone View
effects/colorpicker/colorpicker.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 55 | ColorPickerEffect::ColorPickerEffect() | |||
---|---|---|---|---|---|
56 | : m_scheduledPosition(QPoint(-1, -1)) | 56 | : m_scheduledPosition(QPoint(-1, -1)) | ||
57 | { | 57 | { | ||
58 | qDBusRegisterMetaType<QColor>(); | 58 | qDBusRegisterMetaType<QColor>(); | ||
59 | QDBusConnection::sessionBus().registerObject(QStringLiteral("/ColorPicker"), this, QDBusConnection::ExportScriptableContents); | 59 | QDBusConnection::sessionBus().registerObject(QStringLiteral("/ColorPicker"), this, QDBusConnection::ExportScriptableContents); | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | ColorPickerEffect::~ColorPickerEffect() = default; | 62 | ColorPickerEffect::~ColorPickerEffect() = default; | ||
63 | 63 | | |||
64 | void ColorPickerEffect::paintScreen(int mask, QRegion region, ScreenPaintData &data) | 64 | void ColorPickerEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData &data) | ||
65 | { | 65 | { | ||
66 | m_cachedOutputGeometry = data.outputGeometry(); | 66 | m_cachedOutputGeometry = data.outputGeometry(); | ||
67 | effects->paintScreen(mask, region, data); | 67 | effects->paintScreen(mask, region, data); | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | void ColorPickerEffect::postPaintScreen() | 70 | void ColorPickerEffect::postPaintScreen() | ||
71 | { | 71 | { | ||
72 | effects->postPaintScreen(); | 72 | effects->postPaintScreen(); | ||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |