src/eric7/UI/Ui_NotificationFrame.py

Fri, 07 Jun 2024 10:05:06 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 07 Jun 2024 10:05:06 +0200
branch
eric7
changeset 10743
5d3a5a05114e
child 10745
2921faddeaec
permissions
-rw-r--r--

Changed code structure and install script to include the Ui_*.py files in the code repository and do not compile *.ui files at installation time anymore. This is to cope with a backward incompatible change of Qt 6.7.0.

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_default/src/eric7/UI/NotificationFrame.ui'
#
# Created by: PyQt6 UI code generator 6.7.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_NotificationFrame(object):
    def setupUi(self, NotificationFrame):
        NotificationFrame.setObjectName("NotificationFrame")
        NotificationFrame.resize(400, 80)
        NotificationFrame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
        NotificationFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
        NotificationFrame.setLineWidth(1)
        self.horizontalLayout = QtWidgets.QHBoxLayout(NotificationFrame)
        self.horizontalLayout.setContentsMargins(4, 4, 4, 4)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.icon = QtWidgets.QLabel(parent=NotificationFrame)
        self.icon.setMaximumSize(QtCore.QSize(48, 48))
        self.icon.setText("")
        self.icon.setObjectName("icon")
        self.horizontalLayout.addWidget(self.icon)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.heading = QtWidgets.QLabel(parent=NotificationFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.heading.sizePolicy().hasHeightForWidth())
        self.heading.setSizePolicy(sizePolicy)
        self.heading.setMinimumSize(QtCore.QSize(335, 0))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.heading.setFont(font)
        self.heading.setText("")
        self.heading.setObjectName("heading")
        self.verticalLayout.addWidget(self.heading)
        self.text = QtWidgets.QLabel(parent=NotificationFrame)
        self.text.setMinimumSize(QtCore.QSize(335, 0))
        self.text.setText("")
        self.text.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
        self.text.setWordWrap(True)
        self.text.setObjectName("text")
        self.verticalLayout.addWidget(self.text)
        self.horizontalLayout.addLayout(self.verticalLayout)

        self.retranslateUi(NotificationFrame)
        QtCore.QMetaObject.connectSlotsByName(NotificationFrame)

    def retranslateUi(self, NotificationFrame):
        pass

eric ide

mercurial