Helpviewer/HelpTabBar.py

changeset 2403
e3d7a861547c
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 2824
858412c29c34
equal deleted inserted replaced
2402:304fcefd3b04 2403:e3d7a861547c
10 from PyQt4.QtCore import Qt, QPoint, QTimer, QEvent 10 from PyQt4.QtCore import Qt, QPoint, QTimer, QEvent
11 from PyQt4.QtGui import QFrame, QLabel 11 from PyQt4.QtGui import QFrame, QLabel
12 12
13 from E5Gui.E5TabWidget import E5WheelTabBar 13 from E5Gui.E5TabWidget import E5WheelTabBar
14 from E5Gui.E5PassivePopup import E5PassivePopup 14 from E5Gui.E5PassivePopup import E5PassivePopup
15
16 from .HelpSnap import renderTabPreview
17 15
18 import Preferences 16 import Preferences
19 17
20 18
21 class HelpTabBar(E5WheelTabBar): 19 class HelpTabBar(E5WheelTabBar):
57 self.__previewPopup = E5PassivePopup(self) 55 self.__previewPopup = E5PassivePopup(self)
58 self.__previewPopup.setFrameShape(QFrame.StyledPanel) 56 self.__previewPopup.setFrameShape(QFrame.StyledPanel)
59 self.__previewPopup.setFrameShadow(QFrame.Plain) 57 self.__previewPopup.setFrameShadow(QFrame.Plain)
60 self.__previewPopup.setFixedSize(w, h) 58 self.__previewPopup.setFixedSize(w, h)
61 59
60 from .HelpSnap import renderTabPreview
62 l = QLabel() 61 l = QLabel()
63 l.setPixmap(renderTabPreview(indexedBrowser.page(), w, h)) 62 l.setPixmap(renderTabPreview(indexedBrowser.page(), w, h))
64 63
65 self.__previewPopup.setView(l) 64 self.__previewPopup.setView(l)
66 self.__previewPopup.layout().setAlignment(Qt.AlignTop) 65 self.__previewPopup.layout().setAlignment(Qt.AlignTop)

eric ide

mercurial