3e827f4ece
Word wrapping allows ElideLabel to resize first inside flexible sized areas such as the contents widget of a scrollarea. This allows the contents widget to properly resize itself to avoid horizontal scrolling. Word-wrapping also enables the widget to resize vertically. To avoid that ElideLabel is set to a fixed height based on font metrics. An overloaded method `setFixedHeight` has been added to disable it when desired. EglSyncGroup: Replace estimated path label with a ElideLabel because the displayed message was expanding the scrollarea.
57 lines
2.7 KiB
Python
57 lines
2.7 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'rare/ui/components/tabs/games/integrations/egl_sync_group.ui'
|
|
#
|
|
# Created by: PyQt5 UI code generator 5.15.9
|
|
#
|
|
# 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_EGLSyncGroup(object):
|
|
def setupUi(self, EGLSyncGroup):
|
|
EGLSyncGroup.setObjectName("EGLSyncGroup")
|
|
EGLSyncGroup.resize(217, 88)
|
|
EGLSyncGroup.setWindowTitle("EGLSyncGroup")
|
|
EGLSyncGroup.setCheckable(False)
|
|
EGLSyncGroup.setChecked(False)
|
|
self.egl_sync_layout = QtWidgets.QFormLayout(EGLSyncGroup)
|
|
self.egl_sync_layout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
|
self.egl_sync_layout.setObjectName("egl_sync_layout")
|
|
self.egl_path_edit_label = QtWidgets.QLabel(EGLSyncGroup)
|
|
self.egl_path_edit_label.setObjectName("egl_path_edit_label")
|
|
self.egl_sync_layout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.egl_path_edit_label)
|
|
self.egl_path_edit_layout = QtWidgets.QHBoxLayout()
|
|
self.egl_path_edit_layout.setObjectName("egl_path_edit_layout")
|
|
self.egl_sync_layout.setLayout(0, QtWidgets.QFormLayout.FieldRole, self.egl_path_edit_layout)
|
|
self.egl_sync_check_label = QtWidgets.QLabel(EGLSyncGroup)
|
|
self.egl_sync_check_label.setObjectName("egl_sync_check_label")
|
|
self.egl_sync_layout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.egl_sync_check_label)
|
|
self.egl_sync_check = QtWidgets.QCheckBox(EGLSyncGroup)
|
|
self.egl_sync_check.setText("")
|
|
self.egl_sync_check.setObjectName("egl_sync_check")
|
|
self.egl_sync_layout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.egl_sync_check)
|
|
self.import_export_layout = QtWidgets.QVBoxLayout()
|
|
self.import_export_layout.setObjectName("import_export_layout")
|
|
self.egl_sync_layout.setLayout(2, QtWidgets.QFormLayout.SpanningRole, self.import_export_layout)
|
|
|
|
self.retranslateUi(EGLSyncGroup)
|
|
|
|
def retranslateUi(self, EGLSyncGroup):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
EGLSyncGroup.setTitle(_translate("EGLSyncGroup", "Sync with Epic Games Launcher"))
|
|
self.egl_path_edit_label.setText(_translate("EGLSyncGroup", "Prefix/Manifest path"))
|
|
self.egl_sync_check_label.setText(_translate("EGLSyncGroup", "Enable automatic sync"))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
EGLSyncGroup = QtWidgets.QGroupBox()
|
|
ui = Ui_EGLSyncGroup()
|
|
ui.setupUi(EGLSyncGroup)
|
|
EGLSyncGroup.show()
|
|
sys.exit(app.exec_())
|