def buildOutgoing(self, layout, row, col): outgoing = QGroupBox(self) outgoing.setTitle(tr('Outgoing emails')) outgoing_layout = QGridLayout(outgoing) relayed_net = NetworkListEdit(self) relayed_net.setMaximumHeight(relayed_net.fontMetrics().height() * 5) self.connect(relayed_net, SIGNAL("textChanged()"), self.setMailModified) outgoing_layout.addWidget(QLabel(tr('Networks for which EdenWall relays emails')), 0, 0) outgoing_layout.addWidget(relayed_net, 1, 0, 1, 2) outgoing_layout.addWidget(QLabel(tr( """If outgoing mail should be relayed through a 'smarthost', configure this host in the "Contact" page of the "Services" tab.""" ))) layout.addWidget(outgoing, row, col) return relayed_net
def _mkPushedRoutes(self, lines): pushed_routes = NetworkListEdit() pushed_routes.setMaximumHeight( pushed_routes.fontMetrics().height() * lines ) return pushed_routes