Do not duplicate avatar in address column of Address book
This commit is contained in:
parent
1e037024c3
commit
72299483c4
|
@ -491,7 +491,15 @@ class Ui_AddressBookWidgetItemAddress(Ui_AddressBookWidgetItem):
|
|||
Ui_AddressBookWidgetItem.__init__(self, address, type)
|
||||
self.address = address
|
||||
self.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
|
||||
|
||||
|
||||
def data(self, role):
|
||||
if role == QtCore.Qt.ToolTipRole:
|
||||
return self.address
|
||||
if role == QtCore.Qt.DecorationRole:
|
||||
return
|
||||
return super(Ui_AddressBookWidgetItemAddress, self).data(role)
|
||||
|
||||
|
||||
class AddressBookCompleter(QtGui.QCompleter):
|
||||
def __init__(self):
|
||||
super(QtGui.QCompleter, self).__init__()
|
||||
|
|
Loading…
Reference in New Issue
Block a user