Merge branch '1145' into upstream-v0.6

This commit is contained in:
Peter Šurda 2018-03-16 15:03:30 +01:00
commit 20b5c3552f
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -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__()