Client: Fix bradient compilation error without xpm
Change-Id: I8cbe939352713f643474d383da95b6d13be798a8 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
parent
8a14be4437
commit
14beea787a
@ -305,7 +305,7 @@ void QWaylandBradientDecoration::paint(QPaintDevice *device)
|
||||
p.save();
|
||||
p.drawRect(maximizeButtonRect());
|
||||
rect = maximizeButtonRect().adjusted(5, 5, -5, -5);
|
||||
if (waylandWindow()->isMaximized()) {
|
||||
if ((window()->windowStates() & Qt::WindowMaximized)) {
|
||||
QRectF rect1 = rect.adjusted(rect.width() / 3, 0, 0, -rect.height() / 3);
|
||||
QRectF rect2 = rect.adjusted(0, rect.height() / 4, -rect.width() / 4, 0);
|
||||
p.drawRect(rect1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user