E5Gui/E5ModelMenu.py

changeset 3656
441956d8fce5
parent 3178
f25fc1364c88
child 4021
195a471c327b
equal deleted inserted replaced
3654:ffeb85cdc72d 3656:441956d8fce5
7 Module implementing a menu populated from a QAbstractItemModel. 7 Module implementing a menu populated from a QAbstractItemModel.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt4.QtCore import pyqtSignal, qVersion, Qt, QModelIndex, QPoint 12 from PyQt5.QtCore import pyqtSignal, qVersion, Qt, QModelIndex, QPoint
13 from PyQt4.QtGui import QMenu, QFontMetrics, QAction, QApplication, QDrag, \ 13 from PyQt5.QtGui import QFontMetrics, QDrag, QPixmap
14 QPixmap 14 from PyQt5.QtWidgets import QMenu, QAction, QApplication
15 15
16 import UI.PixmapCache 16 import UI.PixmapCache
17 17
18 18
19 class E5ModelMenu(QMenu): 19 class E5ModelMenu(QMenu):

eric ide

mercurial