Merge branch '1145' into upstream-v0.6
This commit is contained in:
commit
20b5c3552f
|
@ -492,6 +492,14 @@ class Ui_AddressBookWidgetItemAddress(Ui_AddressBookWidgetItem):
|
||||||
self.address = address
|
self.address = address
|
||||||
self.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
|
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):
|
class AddressBookCompleter(QtGui.QCompleter):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(QtGui.QCompleter, self).__init__()
|
super(QtGui.QCompleter, self).__init__()
|
||||||
|
|
Reference in New Issue
Block a user