166 Public method to show the widget. |
166 Public method to show the widget. |
167 |
167 |
168 @param pos position to show at (QPoint) |
168 @param pos position to show at (QPoint) |
169 """ |
169 """ |
170 self.adjustSize() |
170 self.adjustSize() |
171 p = QPoint(pos.x() - self.width(), pos.y() + 10) |
171 xpos = pos.x() - self.width() |
|
172 if xpos < 0: |
|
173 xpos = 10 |
|
174 p = QPoint(xpos, pos.y() + 10) |
172 self.move(p) |
175 self.move(p) |
173 self.show() |
176 self.show() |
174 |
177 |
175 def __showCertificateInfos(self): |
178 def __showCertificateInfos(self): |
176 """ |
179 """ |