def setupUi(self, searchWidget): searchWidget.setObjectName("searchWidget") self.searchWidgetGridLayout = QtGui.QGridLayout(searchWidget) self.searchWidgetGridLayout.setContentsMargins(0, 0, 0, 0) self.searchWidgetGridLayout.setSpacing(0) self.searchWidgetGridLayout.setObjectName("searchWidgetGridLayout") self.searchLineEdit = QtGui.QLineEdit(searchWidget) font = Qt4Gui.QFont() font.setPointSize(9) self.searchLineEdit.setFont(font) self.searchLineEdit.setStyleSheet( "QLineEdit {\n" " border: 0px;\n" " border-radius: 8px;\n" " show-decoration-selected: 1;\n" " padding: 0px 8px;\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 64), stop:1 rgba(255, 255, 255, 0));\n" " background-position: bottom left;\n" " background-image: url(\":/ui_check/gliph/search_16.png\");\n" " background-repeat: fixed;\n" " selection-background-color: darkgray;\n" " padding-left: 15px;\n" "}\n" "QLineEdit:hover{\n" " color: white;\n" " background-image: url(\":/ui_check/gliph/searchHover_16.png\");\n" "}") self.searchLineEdit.setFrame(False) self.searchLineEdit.setObjectName("searchLineEdit") self.searchWidgetGridLayout.addWidget(self.searchLineEdit, 0, 0, 1, 1) self.expandingLayout = QtGui.QVBoxLayout() self.expandingLayout.setSpacing(0) self.expandingLayout.setObjectName("expandingLayout") self.searchWidgetGridLayout.addLayout(self.expandingLayout, 0, 1, 1, 1) self.gearMenuToolButton = QtGui.QToolButton(searchWidget) self.gearMenuToolButton.setMaximumSize(QtCore.QSize(22, 22)) self.gearMenuToolButton.setPopupMode(QtGui.QToolButton.InstantPopup) self.gearMenuToolButton.setAutoRaise(True) self.gearMenuToolButton.setArrowType(QtCore.Qt.NoArrow) self.gearMenuToolButton.setObjectName("gearMenuToolButton") self.searchWidgetGridLayout.addWidget(self.gearMenuToolButton, 0, 2, 1, 1) self.searchOptionsSplitter = QtGui.QSplitter(searchWidget) self.searchOptionsSplitter.setOrientation(QtCore.Qt.Vertical) self.searchOptionsSplitter.setObjectName("searchOptionsSplitter") self.searchWidgetGridLayout.addWidget(self.searchOptionsSplitter, 1, 0, 1, 3) self.searchWidgetGridLayout.setColumnStretch(0, 1) self.retranslateUi(searchWidget) QtCore.QMetaObject.connectSlotsByName(searchWidget)
def setupUi(self, incom): incom.setObjectName("incom") incom.resize(154, 156) self.horizontalLayout = QtGui.QHBoxLayout(incom) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setObjectName("horizontalLayout") self.groupBox = QtGui.QGroupBox(incom) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setStyleSheet( "QGroupBox {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 0), stop:1 rgba(104, 104, 190, 40));\n" " border: 2px solid gray;\n" " border-radius: 2px;\n" "}") self.groupBox.setObjectName("groupBox") self.gridLayout_3 = QtGui.QGridLayout(self.groupBox) self.gridLayout_3.setContentsMargins(0, 0, 0, 0) self.gridLayout_3.setSpacing(0) self.gridLayout_3.setObjectName("gridLayout_3") self.dateLabel = QtGui.QLabel(self.groupBox) self.dateLabel.setMinimumSize(QtCore.QSize(0, 18)) font = Qt4Gui.QFont() font.setPointSize(10) self.dateLabel.setFont(font) self.dateLabel.setToolTip("") self.dateLabel.setStyleSheet( "QLabel {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 0), stop:1 rgba(128, 128, 150, 175));\n" " border-bottom: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 0), stop:1 rgba(128, 128, 128, 175));\n" " padding: 0px;\n" "}") self.dateLabel.setTextFormat(QtCore.Qt.PlainText) self.dateLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.dateLabel.setMargin(2) self.dateLabel.setObjectName("dateLabel") self.gridLayout_3.addWidget(self.dateLabel, 0, 1, 1, 1) self.authorFullLabel = QtGui.QLabel(self.groupBox) self.authorFullLabel.setMinimumSize(QtCore.QSize(0, 50)) font = Qt4Gui.QFont() font.setPointSize(9) self.authorFullLabel.setFont(font) self.authorFullLabel.setAccessibleDescription("") self.authorFullLabel.setStyleSheet("QLabel {\n" " padding: 4px;\n" "}") self.authorFullLabel.setTextFormat(QtCore.Qt.PlainText) self.authorFullLabel.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft) self.authorFullLabel.setObjectName("authorFullLabel") self.gridLayout_3.addWidget(self.authorFullLabel, 2, 0, 1, 1) self.commentLabel = QtGui.QLabel(self.groupBox) self.commentLabel.setText("") self.commentLabel.setTextFormat(QtCore.Qt.RichText) self.commentLabel.setScaledContents(True) self.commentLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.commentLabel.setWordWrap(True) self.commentLabel.setOpenExternalLinks(True) self.commentLabel.setTextInteractionFlags( QtCore.Qt.LinksAccessibleByMouse | QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse) self.commentLabel.setObjectName("commentLabel") self.gridLayout_3.addWidget(self.commentLabel, 1, 1, 2, 1) self.authorPicLabel = QtGui.QLabel(self.groupBox) self.authorPicLabel.setMinimumSize(QtCore.QSize(120, 80)) self.authorPicLabel.setMaximumSize(QtCore.QSize(120, 120)) self.authorPicLabel.setTextFormat(QtCore.Qt.RichText) self.authorPicLabel.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) self.authorPicLabel.setMargin(2) self.authorPicLabel.setObjectName("authorPicLabel") self.gridLayout_3.addWidget(self.authorPicLabel, 1, 0, 1, 1) self.authorLabel = QtGui.QLabel(self.groupBox) self.authorLabel.setMinimumSize(QtCore.QSize(0, 18)) font = Qt4Gui.QFont() font.setPointSize(10) font.setWeight(75) font.setItalic(False) font.setBold(True) self.authorLabel.setFont(font) self.authorLabel.setStyleSheet( "QLabel {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(128, 128, 150, 175), stop:1 rgba(64, 64,64, 0));\n" " border-bottom: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(64, 64, 64, 175), stop:1 rgba(255, 255,255, 0));\n" " padding: 0px;\n" "}") self.authorLabel.setTextFormat(QtCore.Qt.PlainText) self.authorLabel.setObjectName("authorLabel") self.gridLayout_3.addWidget(self.authorLabel, 0, 0, 1, 1) self.gridLayout_3.setColumnStretch(1, 1) self.gridLayout_3.setRowStretch(2, 1) self.horizontalLayout.addWidget(self.groupBox) spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.retranslateUi(incom) QtCore.QMetaObject.connectSlotsByName(incom)
def setupUi(self, snapshotItem): snapshotItem.setObjectName("snapshotItem") self.gridLayout = QtGui.QGridLayout(snapshotItem) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.previewVerticalLayout = QtGui.QVBoxLayout() self.previewVerticalLayout.setSpacing(0) self.previewVerticalLayout.setContentsMargins(4, 4, 4, 4) self.previewVerticalLayout.setObjectName("previewVerticalLayout") self.previewLabel = QtGui.QLabel(snapshotItem) self.previewLabel.setMinimumSize(QtCore.QSize(64, 64)) self.previewLabel.setMaximumSize(QtCore.QSize(64, 64)) self.previewLabel.setStyleSheet( "QLabel {\n" " background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgba(175, 175, 175, 16), stop: 1 rgba(0, 0, 0, 0));\n" " border: 0px;\n" " border-radius: 4px;\n" " padding: 0px 0px;\n" "}") self.previewLabel.setTextFormat(QtCore.Qt.RichText) self.previewLabel.setAlignment(QtCore.Qt.AlignCenter) self.previewLabel.setObjectName("previewLabel") self.previewVerticalLayout.addWidget(self.previewLabel) spacerItem = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Ignored) self.previewVerticalLayout.addItem(spacerItem) self.previewVerticalLayout.setStretch(1, 1) self.gridLayout.addLayout(self.previewVerticalLayout, 0, 1, 3, 1) self.nameVerticalLayout = QtGui.QHBoxLayout() self.nameVerticalLayout.setSpacing(0) self.nameVerticalLayout.setContentsMargins(-1, -1, -1, 3) self.nameVerticalLayout.setObjectName("nameVerticalLayout") self.fileNameLabel = QtGui.QLabel(snapshotItem) self.fileNameLabel.setMinimumSize(QtCore.QSize(0, 20)) self.fileNameLabel.setMaximumSize(QtCore.QSize(16777215, 20)) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.fileNameLabel.setFont(font) self.fileNameLabel.setStyleSheet( "QLabel {\n" " background-color: transparent;\n" " border-bottom: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(128, 128, 128, 64), stop:1 rgba(128, 128,128, 0));\n" "}") self.fileNameLabel.setTextFormat(QtCore.Qt.PlainText) self.fileNameLabel.setWordWrap(True) self.fileNameLabel.setObjectName("fileNameLabel") self.nameVerticalLayout.addWidget(self.fileNameLabel) self.sizeLabel = QtGui.QLabel(snapshotItem) self.sizeLabel.setMinimumSize(QtCore.QSize(0, 20)) self.sizeLabel.setMaximumSize(QtCore.QSize(16777215, 20)) self.sizeLabel.setToolTip("") self.sizeLabel.setStyleSheet( "QLabel {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 0), stop:1 rgba(64, 64, 64, 175));\n" "}") self.sizeLabel.setTextFormat(QtCore.Qt.PlainText) self.sizeLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.sizeLabel.setMargin(2) self.sizeLabel.setObjectName("sizeLabel") self.nameVerticalLayout.addWidget(self.sizeLabel) self.nameVerticalLayout.setStretch(0, 1) self.gridLayout.addLayout(self.nameVerticalLayout, 0, 2, 1, 2) self.infoHorizontalLayout = QtGui.QHBoxLayout() self.infoHorizontalLayout.setSpacing(0) self.infoHorizontalLayout.setObjectName("infoHorizontalLayout") self.gridLayout.addLayout(self.infoHorizontalLayout, 1, 2, 1, 1) self.descriptionLorizontalLayout = QtGui.QHBoxLayout() self.descriptionLorizontalLayout.setSpacing(0) self.descriptionLorizontalLayout.setObjectName( "descriptionLorizontalLayout") self.authorLabel = QtGui.QLabel(snapshotItem) self.authorLabel.setMinimumSize(QtCore.QSize(0, 25)) font = Qt4Gui.QFont() font.setItalic(True) self.authorLabel.setFont(font) self.authorLabel.setStyleSheet("color:grey;") self.authorLabel.setTextFormat(QtCore.Qt.PlainText) self.authorLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.authorLabel.setMargin(2) self.authorLabel.setObjectName("authorLabel") self.descriptionLorizontalLayout.addWidget(self.authorLabel) self.commentLabel = QtGui.QLabel(snapshotItem) self.commentLabel.setMinimumSize(QtCore.QSize(0, 25)) self.commentLabel.setTextFormat(QtCore.Qt.PlainText) self.commentLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.commentLabel.setWordWrap(True) self.commentLabel.setMargin(2) self.commentLabel.setObjectName("commentLabel") self.descriptionLorizontalLayout.addWidget(self.commentLabel) self.descriptionLorizontalLayout.setStretch(1, 1) self.gridLayout.addLayout(self.descriptionLorizontalLayout, 2, 2, 1, 2) self.checkBoxHorizontalLayout = QtGui.QHBoxLayout() self.checkBoxHorizontalLayout.setSpacing(0) self.checkBoxHorizontalLayout.setObjectName("checkBoxHorizontalLayout") spacerItem1 = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.checkBoxHorizontalLayout.addItem(spacerItem1) self.selectedCheckBox = QtGui.QCheckBox(snapshotItem) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.selectedCheckBox.sizePolicy().hasHeightForWidth()) self.selectedCheckBox.setSizePolicy(sizePolicy) self.selectedCheckBox.setMinimumSize(QtCore.QSize(30, 0)) self.selectedCheckBox.setObjectName("selectedCheckBox") self.checkBoxHorizontalLayout.addWidget(self.selectedCheckBox) self.gridLayout.addLayout(self.checkBoxHorizontalLayout, 1, 3, 1, 1) self.itemColorLine = QtGui.QFrame(snapshotItem) self.itemColorLine.setMaximumSize(QtCore.QSize(4, 16777215)) self.itemColorLine.setStyleSheet( "QFrame { border: 0px; background-color: green;}\n" "") self.itemColorLine.setFrameShadow(QtGui.QFrame.Plain) self.itemColorLine.setLineWidth(4) self.itemColorLine.setFrameShape(QtGui.QFrame.VLine) self.itemColorLine.setFrameShadow(QtGui.QFrame.Sunken) self.itemColorLine.setObjectName("itemColorLine") self.gridLayout.addWidget(self.itemColorLine, 0, 0, 3, 1) self.gridLayout.setRowStretch(2, 1) self.retranslateUi(snapshotItem) QtCore.QMetaObject.connectSlotsByName(snapshotItem)
def setupUi(self, assetsBrowser): assetsBrowser.setObjectName("assetsBrowser") assetsBrowser.resize(545, 192) self.verticalLayout = QtGui.QVBoxLayout(assetsBrowser) self.verticalLayout.setSpacing(0) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.splitter = QtGui.QSplitter(assetsBrowser) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.assetsTreeWidget = QtGui.QTreeWidget(self.splitter) self.assetsTreeWidget.setMinimumSize(QtCore.QSize(120, 0)) self.assetsTreeWidget.setMaximumSize(QtCore.QSize(200, 16777215)) self.assetsTreeWidget.setBaseSize(QtCore.QSize(60, 0)) self.assetsTreeWidget.setObjectName("assetsTreeWidget") self.assetsTreeWidget.header().setVisible(False) self.verticalLayoutWidget_3 = QtGui.QWidget(self.splitter) self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.searchLineEdit = QtGui.QLineEdit(self.verticalLayoutWidget_3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.searchLineEdit.sizePolicy().hasHeightForWidth()) self.searchLineEdit.setSizePolicy(sizePolicy) self.searchLineEdit.setMaximumSize(QtCore.QSize(16777215, 20)) font = Qt4Gui.QFont() font.setPointSize(9) self.searchLineEdit.setFont(font) self.searchLineEdit.setStyleSheet( "QLineEdit {\n" " color: rgb(192, 192, 192);\n" " border: 2px solid darkgray;\n" " border-radius: 10px;\n" " show-decoration-selected: 1;\n" " padding: 0px 8px;\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(128, 128, 128, 255), stop:1 rgba(64, 64,64, 255));\n" " background-position: bottom left;\n" " background-image: url(\":/ui_check/gliph/search_16.png\");\n" " background-repeat: fixed;\n" " selection-background-color: darkgray;\n" " padding-left: 15px;\n" "}\n" "QLineEdit:hover{\n" " color: white;\n" " background-image: url(\":/ui_check/gliph/searchHover_16.png\");\n" "}") self.searchLineEdit.setFrame(False) self.searchLineEdit.setObjectName("searchLineEdit") self.verticalLayout_2.addWidget(self.searchLineEdit) self.searchOptionsLayout = QtGui.QVBoxLayout() self.searchOptionsLayout.setSpacing(0) self.searchOptionsLayout.setObjectName("searchOptionsLayout") self.verticalLayout_2.addLayout(self.searchOptionsLayout) self.sobjectScrollLayout = QtGui.QVBoxLayout() self.sobjectScrollLayout.setSpacing(0) self.sobjectScrollLayout.setObjectName("sobjectScrollLayout") self.verticalLayout_2.addLayout(self.sobjectScrollLayout) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setSpacing(6) self.horizontalLayout.setObjectName("horizontalLayout") self.countLabel = QtGui.QLabel(self.verticalLayoutWidget_3) self.countLabel.setObjectName("countLabel") self.horizontalLayout.addWidget(self.countLabel) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.label_2 = QtGui.QLabel(self.verticalLayoutWidget_3) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.limitSpinBox = QtGui.QSpinBox(self.verticalLayoutWidget_3) self.limitSpinBox.setMinimum(5) self.limitSpinBox.setMaximum(500) self.limitSpinBox.setSingleStep(5) self.limitSpinBox.setProperty("value", 20) self.limitSpinBox.setObjectName("limitSpinBox") self.horizontalLayout.addWidget(self.limitSpinBox) self.label = QtGui.QLabel(self.verticalLayoutWidget_3) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.zoomSpinBox = QtGui.QSpinBox(self.verticalLayoutWidget_3) self.zoomSpinBox.setMinimum(25) self.zoomSpinBox.setMaximum(400) self.zoomSpinBox.setSingleStep(25) self.zoomSpinBox.setProperty("value", 100) self.zoomSpinBox.setObjectName("zoomSpinBox") self.horizontalLayout.addWidget(self.zoomSpinBox) self.verticalLayout_2.addLayout(self.horizontalLayout) self.verticalLayout_2.setStretch(2, 1) self.verticalLayout.addWidget(self.splitter) self.retranslateUi(assetsBrowser) QtCore.QMetaObject.connectSlotsByName(assetsBrowser)
def setupUi(self, item): item.setObjectName("item") self.gridLayout = QtGui.QGridLayout(item) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.itemColorLine = QtGui.QFrame(item) self.itemColorLine.setMaximumSize(QtCore.QSize(4, 16777215)) self.itemColorLine.setStyleSheet( "QFrame { border: 0px; background-color: black;}") self.itemColorLine.setFrameShadow(QtGui.QFrame.Plain) self.itemColorLine.setLineWidth(4) self.itemColorLine.setFrameShape(QtGui.QFrame.VLine) self.itemColorLine.setFrameShadow(QtGui.QFrame.Sunken) self.itemColorLine.setObjectName("itemColorLine") self.gridLayout.addWidget(self.itemColorLine, 0, 0, 3, 1) self.previewVerticalLayout = QtGui.QVBoxLayout() self.previewVerticalLayout.setSpacing(0) self.previewVerticalLayout.setContentsMargins(4, 4, 4, 4) self.previewVerticalLayout.setObjectName("previewVerticalLayout") self.previewLabel = QtGui.QLabel(item) self.previewLabel.setMinimumSize(QtCore.QSize(64, 64)) self.previewLabel.setMaximumSize(QtCore.QSize(64, 64)) self.previewLabel.setStyleSheet( "QLabel {\n" " background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgba(175, 175, 175, 16), stop: 1 rgba(0, 0, 0, 0));\n" " border: 0px;\n" " border-radius: 4px;\n" " padding: 0px 0px;\n" "}") self.previewLabel.setTextFormat(QtCore.Qt.RichText) self.previewLabel.setAlignment(QtCore.Qt.AlignCenter) self.previewLabel.setObjectName("previewLabel") self.previewVerticalLayout.addWidget(self.previewLabel) spacerItem = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Ignored) self.previewVerticalLayout.addItem(spacerItem) self.previewVerticalLayout.setStretch(1, 1) self.gridLayout.addLayout(self.previewVerticalLayout, 0, 1, 3, 1) self.toolsVerticalLayout = QtGui.QVBoxLayout() self.toolsVerticalLayout.setSpacing(6) self.toolsVerticalLayout.setContentsMargins(3, 4, 6, -1) self.toolsVerticalLayout.setObjectName("toolsVerticalLayout") self.tasksToolButton = QtGui.QToolButton(item) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.tasksToolButton.sizePolicy().hasHeightForWidth()) self.tasksToolButton.setSizePolicy(sizePolicy) self.tasksToolButton.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly) self.tasksToolButton.setAutoRaise(True) self.tasksToolButton.setArrowType(QtCore.Qt.NoArrow) self.tasksToolButton.setObjectName("tasksToolButton") self.toolsVerticalLayout.addWidget(self.tasksToolButton) self.relationsToolButton = QtGui.QToolButton(item) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.relationsToolButton.sizePolicy().hasHeightForWidth()) self.relationsToolButton.setSizePolicy(sizePolicy) self.relationsToolButton.setPopupMode( QtGui.QToolButton.MenuButtonPopup) self.relationsToolButton.setToolButtonStyle( QtCore.Qt.ToolButtonTextBesideIcon) self.relationsToolButton.setAutoRaise(True) self.relationsToolButton.setArrowType(QtCore.Qt.NoArrow) self.relationsToolButton.setObjectName("relationsToolButton") self.toolsVerticalLayout.addWidget(self.relationsToolButton) spacerItem1 = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Ignored) self.toolsVerticalLayout.addItem(spacerItem1) self.toolsVerticalLayout.setStretch(2, 1) self.gridLayout.addLayout(self.toolsVerticalLayout, 0, 2, 3, 1) self.nameVerticalLayout = QtGui.QVBoxLayout() self.nameVerticalLayout.setSpacing(0) self.nameVerticalLayout.setContentsMargins(-1, -1, -1, 3) self.nameVerticalLayout.setObjectName("nameVerticalLayout") self.fileNameLabel = QtGui.QLabel(item) self.fileNameLabel.setMinimumSize(QtCore.QSize(0, 20)) self.fileNameLabel.setMaximumSize(QtCore.QSize(16777215, 24)) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.fileNameLabel.setFont(font) self.fileNameLabel.setStyleSheet( "QLabel {\n" " background-color: transparent;\n" " border-bottom: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(128, 128, 128, 64), stop:1 rgba(128, 128,128, 0));\n" "}") self.fileNameLabel.setTextFormat(QtCore.Qt.PlainText) self.fileNameLabel.setObjectName("fileNameLabel") self.nameVerticalLayout.addWidget(self.fileNameLabel) self.gridLayout.addLayout(self.nameVerticalLayout, 0, 3, 1, 2) self.checkBoxHorizontalLayout = QtGui.QHBoxLayout() self.checkBoxHorizontalLayout.setSpacing(0) self.checkBoxHorizontalLayout.setObjectName("checkBoxHorizontalLayout") spacerItem2 = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.checkBoxHorizontalLayout.addItem(spacerItem2) self.selectedCheckBox = QtGui.QCheckBox(item) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.selectedCheckBox.sizePolicy().hasHeightForWidth()) self.selectedCheckBox.setSizePolicy(sizePolicy) self.selectedCheckBox.setMinimumSize(QtCore.QSize(30, 0)) self.selectedCheckBox.setObjectName("selectedCheckBox") self.checkBoxHorizontalLayout.addWidget(self.selectedCheckBox) self.gridLayout.addLayout(self.checkBoxHorizontalLayout, 1, 4, 1, 1) self.descriptionLerticalLayout = QtGui.QVBoxLayout() self.descriptionLerticalLayout.setSpacing(0) self.descriptionLerticalLayout.setObjectName( "descriptionLerticalLayout") self.commentLabel = QtGui.QLabel(item) self.commentLabel.setMinimumSize(QtCore.QSize(0, 25)) self.commentLabel.setTextFormat(QtCore.Qt.PlainText) self.commentLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.commentLabel.setWordWrap(True) self.commentLabel.setMargin(2) self.commentLabel.setObjectName("commentLabel") self.descriptionLerticalLayout.addWidget(self.commentLabel) self.gridLayout.addLayout(self.descriptionLerticalLayout, 2, 3, 1, 2) self.infoHorizontalLayout = QtGui.QHBoxLayout() self.infoHorizontalLayout.setSpacing(0) self.infoHorizontalLayout.setObjectName("infoHorizontalLayout") self.gridLayout.addLayout(self.infoHorizontalLayout, 1, 3, 1, 1) self.gridLayout.setRowStretch(2, 1) self.retranslateUi(item) QtCore.QMetaObject.connectSlotsByName(item)