Helpviewer/Bookmarks/BookmarksModel.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2403
e3d7a861547c
child 2791
a9577f248f04
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the bookmark model class. 7 Module implementing the bookmark model class.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import Qt, QAbstractItemModel, QModelIndex, QUrl, QByteArray, \ 12 from PyQt4.QtCore import Qt, QAbstractItemModel, QModelIndex, QUrl, QByteArray, \
11 QDataStream, QIODevice, QBuffer, QMimeData 13 QDataStream, QIODevice, QBuffer, QMimeData
12 14
13 import UI.PixmapCache 15 import UI.PixmapCache
29 Constructor 31 Constructor
30 32
31 @param manager reference to the bookmark manager object (BookmarksManager) 33 @param manager reference to the bookmark manager object (BookmarksManager)
32 @param parent reference to the parent object (QObject) 34 @param parent reference to the parent object (QObject)
33 """ 35 """
34 super().__init__(parent) 36 super(BookmarksModel, self).__init__(parent)
35 37
36 self.__endMacro = False 38 self.__endMacro = False
37 self.__bookmarksManager = manager 39 self.__bookmarksManager = manager
38 40
39 manager.entryAdded.connect(self.entryAdded) 41 manager.entryAdded.connect(self.entryAdded)

eric ide

mercurial