Changed transformation mode for pixmaps
This commit is contained in:
parent
a5f2193499
commit
144498d333
|
@ -25,6 +25,8 @@ class BaseInstalledWidget(QGroupBox):
|
|||
self.game_running = False
|
||||
self.update_available = self.core.get_asset(self.game.app_name, True).build_version != igame.version
|
||||
|
||||
|
||||
|
||||
self.setContentsMargins(0, 0, 0, 0)
|
||||
|
||||
# self.setStyleSheet("border-radius: 5px")
|
||||
|
|
|
@ -37,7 +37,7 @@ class GameWidgetInstalled(BaseInstalledWidget):
|
|||
|
||||
if self.pixmap:
|
||||
w = 200
|
||||
self.pixmap = self.pixmap.scaled(w, int(w * 4 / 3))
|
||||
self.pixmap = self.pixmap.scaled(w, int(w * 4 / 3), transformMode=Qt.SmoothTransformation)
|
||||
self.image = ClickableLabel()
|
||||
self.image.setObjectName("game_widget")
|
||||
self.image.setPixmap(self.pixmap)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import os
|
||||
from logging import getLogger
|
||||
|
||||
from PyQt5.QtCore import QProcess, pyqtSignal
|
||||
from PyQt5.QtCore import QProcess, pyqtSignal, Qt
|
||||
from PyQt5.QtWidgets import QHBoxLayout, QLabel, QPushButton, QStyle, QVBoxLayout
|
||||
from qtawesome import icon
|
||||
|
||||
|
@ -30,7 +30,7 @@ class InstalledListWidget(BaseInstalledWidget):
|
|||
self.childLayout = QVBoxLayout()
|
||||
|
||||
if self.pixmap:
|
||||
self.pixmap = self.pixmap.scaled(180, 240)
|
||||
self.pixmap = self.pixmap.scaled(180, 240, transformMode=Qt.SmoothTransformation)
|
||||
self.image = QLabel()
|
||||
self.image.setPixmap(self.pixmap)
|
||||
self.layout.addWidget(self.image)
|
||||
|
|
Loading…
Reference in a new issue