E5Network/E5SslInfoWidget.py

branch
Py2 comp.
changeset 2677
3d4277929fb3
parent 2538
b2642e7a4c18
parent 2666
a9d0feafa87b
child 3057
10516539f238
equal deleted inserted replaced
2670:e60ea6cb8e11 2677:3d4277929fb3
168 Public method to show the widget. 168 Public method to show the widget.
169 169
170 @param pos position to show at (QPoint) 170 @param pos position to show at (QPoint)
171 """ 171 """
172 self.adjustSize() 172 self.adjustSize()
173 p = QPoint(pos.x() - self.width(), pos.y() + 10) 173 xpos = pos.x() - self.width()
174 if xpos < 0:
175 xpos = 10
176 p = QPoint(xpos, pos.y() + 10)
174 self.move(p) 177 self.move(p)
175 self.show() 178 self.show()
176 179
177 def __showCertificateInfos(self): 180 def __showCertificateInfos(self):
178 """ 181 """

eric ide

mercurial