diff --git a/clients/aurorae/src/aurorae.cpp b/clients/aurorae/src/aurorae.cpp index 6e9f4554cd..2cf1f423b9 100644 --- a/clients/aurorae/src/aurorae.cpp +++ b/clients/aurorae/src/aurorae.cpp @@ -381,7 +381,7 @@ void Decoration::updateBorders() setBorders(*b); } -void Decoration::paint(QPainter *painter, const QRegion &repaintRegion) +void Decoration::paint(QPainter *painter, const QRect &repaintRegion) { Q_UNUSED(repaintRegion) if (!settings()->isAlphaChannelSupported()) { diff --git a/clients/aurorae/src/aurorae.h b/clients/aurorae/src/aurorae.h index 462faa8510..802025a342 100644 --- a/clients/aurorae/src/aurorae.h +++ b/clients/aurorae/src/aurorae.h @@ -44,7 +44,7 @@ public: explicit Decoration(QObject *parent = nullptr, const QVariantList &args = QVariantList()); virtual ~Decoration(); - void paint(QPainter *painter, const QRegion &repaintRegion) override; + void paint(QPainter *painter, const QRect &repaintRegion) override; Q_INVOKABLE QVariant readConfig(const QString &key, const QVariant &defaultValue = QVariant()); diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewbutton.cpp b/kcmkwin/kwindecoration/declarative-plugin/previewbutton.cpp index d3dd990c2b..2fabcb9858 100644 --- a/kcmkwin/kwindecoration/declarative-plugin/previewbutton.cpp +++ b/kcmkwin/kwindecoration/declarative-plugin/previewbutton.cpp @@ -131,7 +131,7 @@ void PreviewButtonItem::paint(QPainter *painter) if (!m_button) { return; } - m_button->paint(painter, QRegion(0, 0, width(), height())); + m_button->paint(painter, QRect(0, 0, width(), height())); } } diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp b/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp index 3482d7faef..9e26fa0646 100644 --- a/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp +++ b/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp @@ -154,7 +154,7 @@ void PreviewItem::paint(QPainter *painter) int paddingRight = 0; int paddingBottom = 0; paintShadow(painter, paddingLeft, paddingRight, paddingTop, paddingBottom); - m_decoration->paint(painter, QRegion(0, 0, width(), height())); + m_decoration->paint(painter, QRect(0, 0, width(), height())); if (m_drawBackground) { painter->fillRect(m_decoration->borderLeft(), m_decoration->borderTop(), width() - m_decoration->borderLeft() - m_decoration->borderRight() - paddingLeft - paddingRight,