fix warnings
This commit is contained in:
1 parent
ab7784dcde
commit
2dcc63875d
17 files changed
+38
No files matched your search
@@ -93,6 +93,8 @@ void Background::paintEvent(QPaintEvent *event)
|
||||
QWidget::paintEvent(event);
|
||||
if (m_img && fullScreen) {
|
||||
QPainter painter(this);
|
||||
if (!painter.isActive())
|
||||
return;
|
||||
const int x = width() - m_img->width() - (width() - 800) * 3 / 8;
|
||||
const int y = (height() - 600) / 3;
|
||||
painter.drawImage(x, y, m_img->image());
|
||||
|
||||
Reference in new issue
Block a user