Ignore aspect ratio when scaling background (Bug #1)
Qt:KeepAspectRatio results in the background image becoming strangely mangled. Changing to Qt::IgnoreAspectRatio results in scaling behavior very similar to the behavior used by PCManFM-Qt by default when scaling wallpapers, resulting in the image sometimes looking "stretched" or "squished", but never mangled.
This commit is contained in:
parent
881d7c34ba
commit
287dcfe606
@ -16,7 +16,7 @@ InstallerPrompt::InstallerPrompt(QWidget *parent)
|
||||
|
||||
int height = screenGeometry.height();
|
||||
int width = screenGeometry.width();
|
||||
bg = bg.scaled(width, height, Qt::KeepAspectRatio);
|
||||
bg = bg.scaled(width, height, Qt::IgnoreAspectRatio);
|
||||
|
||||
QPalette palette;
|
||||
palette.setBrush(QPalette::Window, bg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user