def __init__(self, parent, jid, show, con, member): AbstractListItem.__init__(self, parent, jid, show, con) self.setFlags(Qt.ItemIsUserCheckable | Qt.ItemIsEnabled | Qt.ItemIsSelectable) self.setState(member) name = self.connection.getName(self.jid) if name is not self.jid: toolTip = name + " <" + str(self.jid) + ">" else: toolTip = "<" + str(self.jid) + ">" self.setToolTip(0, toolTip)
def __init__(self, buddyList, parent, jid, show, con): AbstractListItem.__init__(self, parent, jid, show, con) self.buddyList = buddyList toolTip = "" for jid in self.jid: name = self.connection.getName(jid) if name is not jid: toolTip += name + " <" + str(jid) + ">, \n" else: toolTip += "<" + str(jid) + ">, \n" self.setToolTip(0, toolTip[:-3])