mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
abaa0f8cd7
commit
43ce9b685e
@ -10,7 +10,7 @@ __docformat__ = 'restructuredtext en'
|
|||||||
import weakref
|
import weakref
|
||||||
|
|
||||||
from PyQt4.Qt import (QLineEdit, QAbstractListModel, Qt, pyqtSignal, QObject,
|
from PyQt4.Qt import (QLineEdit, QAbstractListModel, Qt, pyqtSignal, QObject,
|
||||||
QApplication, QCompleter, QListView, QPoint)
|
QApplication, QListView, QPoint)
|
||||||
|
|
||||||
from calibre.utils.icu import sort_key, primary_startswith
|
from calibre.utils.icu import sort_key, primary_startswith
|
||||||
from calibre.gui2 import NONE
|
from calibre.gui2 import NONE
|
||||||
@ -20,8 +20,6 @@ class CompleteModel(QAbstractListModel): # {{{
|
|||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
QAbstractListModel.__init__(self, parent)
|
QAbstractListModel.__init__(self, parent)
|
||||||
self.items = []
|
|
||||||
self.sorting = QCompleter.UnsortedModel
|
|
||||||
self.all_items = self.current_items = ()
|
self.all_items = self.current_items = ()
|
||||||
self.current_prefix = ''
|
self.current_prefix = ''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user