[kdecoration] ::paint uses QRect instead of QRegion
This commit is contained in:
parent
f103cd0bea
commit
211834edcc
4 changed files with 4 additions and 4 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
|
@ -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()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue