7 Module implementing a tool bar showing bookmarks. |
7 Module implementing a tool bar showing bookmarks. |
8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 from PyQt4.QtCore import pyqtSignal, Qt, QUrl |
12 from PyQt5.QtCore import pyqtSignal, Qt, QUrl, QCoreApplication |
13 from PyQt4.QtGui import QMenu, QApplication, QCursor |
13 from PyQt5.QtGui import QCursor |
14 from PyQt4.QtWebKit import QWebPage |
14 from PyQt5.QtWidgets import QMenu |
|
15 from PyQt5.QtWebKitWidgets import QWebPage |
15 |
16 |
16 from E5Gui.E5ModelToolBar import E5ModelToolBar |
17 from E5Gui.E5ModelToolBar import E5ModelToolBar |
17 |
18 |
18 import Helpviewer.HelpWindow |
19 import Helpviewer.HelpWindow |
19 |
20 |
37 @param mainWindow reference to the main window (HelpWindow) |
38 @param mainWindow reference to the main window (HelpWindow) |
38 @param model reference to the bookmarks model (BookmarksModel) |
39 @param model reference to the bookmarks model (BookmarksModel) |
39 @param parent reference to the parent widget (QWidget) |
40 @param parent reference to the parent widget (QWidget) |
40 """ |
41 """ |
41 E5ModelToolBar.__init__( |
42 E5ModelToolBar.__init__( |
42 self, QApplication.translate("BookmarksToolBar", "Bookmarks"), |
43 self, QCoreApplication.translate("BookmarksToolBar", "Bookmarks"), |
43 parent) |
44 parent) |
44 |
45 |
45 self.__mw = mainWindow |
46 self.__mw = mainWindow |
46 self.__bookmarksModel = model |
47 self.__bookmarksModel = model |
47 |
48 |