[kdecoration] ::paint uses QRect instead of QRegion

This commit is contained in:
Martin Gräßlin 2014-11-28 10:26:23 +01:00
parent f103cd0bea
commit 211834edcc
4 changed files with 4 additions and 4 deletions

View file

@ -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()) {

View file

@ -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());

View file

@ -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()));
}
}

View file

@ -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,