Remove borders from EGLSync lists. Color install/uninstall buttons correctly in DLC tab Adjust InstallDialog because the check function runs early now.
154 lines
8.1 KiB
Python
154 lines
8.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'rare/ui/components/tabs/games/game_info/game_dlc_widget.ui'
|
|
#
|
|
# Created by: PyQt5 UI code generator 5.15.4
|
|
#
|
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
|
# run again. Do not edit this file unless you know what you are doing.
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
class Ui_GameDlcWidget(object):
|
|
def setupUi(self, GameDlcWidget):
|
|
GameDlcWidget.setObjectName("GameDlcWidget")
|
|
GameDlcWidget.resize(424, 163)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(GameDlcWidget.sizePolicy().hasHeightForWidth())
|
|
GameDlcWidget.setSizePolicy(sizePolicy)
|
|
GameDlcWidget.setWindowTitle("GameDlcWidget")
|
|
GameDlcWidget.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
GameDlcWidget.setFrameShadow(QtWidgets.QFrame.Raised)
|
|
self.dlc_layout = QtWidgets.QHBoxLayout(GameDlcWidget)
|
|
self.dlc_layout.setObjectName("dlc_layout")
|
|
self.image = QtWidgets.QLabel(GameDlcWidget)
|
|
self.image.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
self.image.setFrameShadow(QtWidgets.QFrame.Sunken)
|
|
self.image.setText("")
|
|
self.image.setObjectName("image")
|
|
self.dlc_layout.addWidget(self.image)
|
|
self.dlc_info_layout = QtWidgets.QFormLayout()
|
|
self.dlc_info_layout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
|
self.dlc_info_layout.setContentsMargins(6, 6, 6, 6)
|
|
self.dlc_info_layout.setSpacing(12)
|
|
self.dlc_info_layout.setObjectName("dlc_info_layout")
|
|
self.dlc_name_label = QtWidgets.QLabel(GameDlcWidget)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.dlc_name_label.sizePolicy().hasHeightForWidth())
|
|
self.dlc_name_label.setSizePolicy(sizePolicy)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.dlc_name_label.setFont(font)
|
|
self.dlc_name_label.setObjectName("dlc_name_label")
|
|
self.dlc_info_layout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.dlc_name_label)
|
|
self.dlc_name = QtWidgets.QLabel(GameDlcWidget)
|
|
self.dlc_name.setText("error")
|
|
self.dlc_name.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
|
|
self.dlc_name.setObjectName("dlc_name")
|
|
self.dlc_info_layout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.dlc_name)
|
|
self.version_label = QtWidgets.QLabel(GameDlcWidget)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.version_label.sizePolicy().hasHeightForWidth())
|
|
self.version_label.setSizePolicy(sizePolicy)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.version_label.setFont(font)
|
|
self.version_label.setObjectName("version_label")
|
|
self.dlc_info_layout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.version_label)
|
|
self.version = QtWidgets.QLabel(GameDlcWidget)
|
|
self.version.setText("error")
|
|
self.version.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
|
|
self.version.setObjectName("version")
|
|
self.dlc_info_layout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.version)
|
|
self.status_label = QtWidgets.QLabel(GameDlcWidget)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.status_label.sizePolicy().hasHeightForWidth())
|
|
self.status_label.setSizePolicy(sizePolicy)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.status_label.setFont(font)
|
|
self.status_label.setObjectName("status_label")
|
|
self.dlc_info_layout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.status_label)
|
|
self.status = QtWidgets.QLabel(GameDlcWidget)
|
|
self.status.setText("error")
|
|
self.status.setWordWrap(True)
|
|
self.status.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
|
|
self.status.setObjectName("status")
|
|
self.dlc_info_layout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.status)
|
|
self.actions_label = QtWidgets.QLabel(GameDlcWidget)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.actions_label.sizePolicy().hasHeightForWidth())
|
|
self.actions_label.setSizePolicy(sizePolicy)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.actions_label.setFont(font)
|
|
self.actions_label.setObjectName("actions_label")
|
|
self.dlc_info_layout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.actions_label)
|
|
self.action_button = QtWidgets.QPushButton(GameDlcWidget)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.action_button.sizePolicy().hasHeightForWidth())
|
|
self.action_button.setSizePolicy(sizePolicy)
|
|
self.action_button.setMinimumSize(QtCore.QSize(250, 0))
|
|
self.action_button.setStyleSheet("")
|
|
self.action_button.setText("Action")
|
|
self.action_button.setObjectName("action_button")
|
|
self.dlc_info_layout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.action_button)
|
|
self.app_name_label = QtWidgets.QLabel(GameDlcWidget)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.app_name_label.sizePolicy().hasHeightForWidth())
|
|
self.app_name_label.setSizePolicy(sizePolicy)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.app_name_label.setFont(font)
|
|
self.app_name_label.setObjectName("app_name_label")
|
|
self.dlc_info_layout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.app_name_label)
|
|
self.app_name = QtWidgets.QLabel(GameDlcWidget)
|
|
self.app_name.setText("error")
|
|
self.app_name.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
|
|
self.app_name.setObjectName("app_name")
|
|
self.dlc_info_layout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.app_name)
|
|
self.dlc_layout.addLayout(self.dlc_info_layout)
|
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
self.dlc_layout.addItem(spacerItem)
|
|
|
|
self.retranslateUi(GameDlcWidget)
|
|
QtCore.QMetaObject.connectSlotsByName(GameDlcWidget)
|
|
|
|
def retranslateUi(self, GameDlcWidget):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
self.dlc_name_label.setText(_translate("GameDlcWidget", "DLC Name"))
|
|
self.version_label.setText(_translate("GameDlcWidget", "Version"))
|
|
self.status_label.setText(_translate("GameDlcWidget", "Status"))
|
|
self.actions_label.setText(_translate("GameDlcWidget", "Actions"))
|
|
self.app_name_label.setText(_translate("GameDlcWidget", "Application"))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
GameDlcWidget = QtWidgets.QFrame()
|
|
ui = Ui_GameDlcWidget()
|
|
ui.setupUi(GameDlcWidget)
|
|
GameDlcWidget.show()
|
|
sys.exit(app.exec_())
|