Do not duplicate avatar in address column of Address book

This commit is contained in:
Dmitri Bogomolov 2018-03-02 14:56:25 +02:00
parent 1e037024c3
commit 72299483c4
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -492,6 +492,14 @@ class Ui_AddressBookWidgetItemAddress(Ui_AddressBookWidgetItem):
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__()