1
0
Fork 0
mirror of synced 2024-06-17 01:54:46 +12:00

Changed transformation mode for pixmaps

This commit is contained in:
Dummerle 2021-04-06 12:10:42 +02:00
parent a5f2193499
commit 144498d333
3 changed files with 5 additions and 3 deletions

View file

@ -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")

View file

@ -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)

View file

@ -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)