From ae2183ed61623b1bb96538436e1ec2ed1ef25b6e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 24 Apr 2014 14:56:26 +0530 Subject: [PATCH] Port obsolete setAutoCompletionCaseSensitivity from QCombobox --- src/calibre/gui2/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/widgets.py b/src/calibre/gui2/widgets.py index cbee6f71dc..5a8bd9438d 100644 --- a/src/calibre/gui2/widgets.py +++ b/src/calibre/gui2/widgets.py @@ -574,7 +574,7 @@ class EnComboBox(QComboBox): # {{{ def __init__(self, *args): QComboBox.__init__(self, *args) self.setLineEdit(EnLineEdit(self)) - self.setAutoCompletionCaseSensitivity(Qt.CaseInsensitive) + self.completer().setCaseSensitivity(Qt.CaseInsensitive) self.setMinimumContentsLength(20) def text(self):