Fix setOverlayOpacity setting the opacity of the cursor rect and map grid
This commit is contained in:
parent
f8edaec838
commit
d22aab9b10
1 changed files with 2 additions and 0 deletions
|
@ -26,9 +26,11 @@ void OverlayImage::render(QPainter *painter, int x, int y) {
|
|||
void Overlay::renderItems(QPainter *painter) {
|
||||
if (this->hidden) return;
|
||||
|
||||
qreal oldOpacity = painter->opacity();
|
||||
painter->setOpacity(this->opacity);
|
||||
for (auto item : this->items)
|
||||
item->render(painter, this->x, this->y);
|
||||
painter->setOpacity(oldOpacity);
|
||||
}
|
||||
|
||||
void Overlay::clearItems() {
|
||||
|
|
Loading…
Reference in a new issue