Helpviewer/HelpTabBar.py

changeset 2824
858412c29c34
parent 2403
e3d7a861547c
child 2847
1843ef6e2656
child 2954
bf0215fe12d1
equal deleted inserted replaced
2822:449de130268e 2824:858412c29c34
61 l = QLabel() 61 l = QLabel()
62 l.setPixmap(renderTabPreview(indexedBrowser.page(), w, h)) 62 l.setPixmap(renderTabPreview(indexedBrowser.page(), w, h))
63 63
64 self.__previewPopup.setView(l) 64 self.__previewPopup.setView(l)
65 self.__previewPopup.layout().setAlignment(Qt.AlignTop) 65 self.__previewPopup.layout().setAlignment(Qt.AlignTop)
66 self.__previewPopup.layout().setMargin(0) 66 self.__previewPopup.layout().setContentsMargins(0, 0, 0, 0)
67 67
68 tr = self.tabRect(self.__currentTabPreviewIndex) 68 tr = self.tabRect(self.__currentTabPreviewIndex)
69 pos = QPoint(tr.x(), tr.y() + tr.height()) 69 pos = QPoint(tr.x(), tr.y() + tr.height())
70 70
71 self.__previewPopup.show(self.mapToGlobal(pos)) 71 self.__previewPopup.show(self.mapToGlobal(pos))

eric ide

mercurial