mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
a3a361b0eb
commit
8db61f96ec
@ -90,14 +90,6 @@ void MaskablePixmapWidget::setSize(QSize size)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void MaskablePixmapWidget::paintEvent(QPaintEvent* e)
|
||||
{
|
||||
QLabel::setPixmap(*renderTarget);
|
||||
QLabel::paintEvent(e);
|
||||
}
|
||||
|
||||
void MaskablePixmapWidget::mousePressEvent(QMouseEvent*)
|
||||
{
|
||||
if (clickable) {
|
||||
@ -118,4 +110,5 @@ void MaskablePixmapWidget::updatePixmap()
|
||||
painter.setCompositionMode(QPainter::CompositionMode_DestinationIn);
|
||||
painter.drawPixmap(0, 0, mask);
|
||||
painter.end();
|
||||
QLabel::setPixmap(*renderTarget);
|
||||
}
|
||||
|
@ -38,7 +38,6 @@ signals:
|
||||
void clicked();
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent*) final override;
|
||||
void mousePressEvent(QMouseEvent*) final override;
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user