7 Module implementing a tool bar populated from a QAbstractItemModel. |
7 Module implementing a tool bar 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, QEvent |
12 from PyQt5.QtCore import pyqtSignal, qVersion, Qt, QModelIndex, QPoint, QEvent |
13 from PyQt4.QtGui import QApplication, QDrag, QPixmap, QToolBar, QIcon, \ |
13 from PyQt5.QtGui import QDrag, QPixmap, QIcon |
14 QToolButton |
14 from PyQt5.QtWidgets import QApplication, QToolBar, QToolButton |
15 |
15 |
16 |
16 |
17 class E5ModelToolBar(QToolBar): |
17 class E5ModelToolBar(QToolBar): |
18 """ |
18 """ |
19 Class implementing a tool bar populated from a QAbstractItemModel. |
19 Class implementing a tool bar populated from a QAbstractItemModel. |