mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
don't center widget
This commit is contained in:
parent
4ed74637b2
commit
b9e84d078f
1 changed files with 0 additions and 12 deletions
|
|
@ -239,15 +239,3 @@ class PypeInfoWidget(QtWidgets.QWidget):
|
|||
value_label, row, 1, 1, 1
|
||||
)
|
||||
return info_widget
|
||||
|
||||
def showEvent(self, event):
|
||||
"""Center widget to center of desktop on show."""
|
||||
result = super(PypeInfoWidget, self).showEvent(event)
|
||||
screen_center = (
|
||||
QtWidgets.QApplication.desktop().availableGeometry(self).center()
|
||||
)
|
||||
self.move(
|
||||
screen_center.x() - (self.width() / 2),
|
||||
screen_center.y() - (self.height() / 2)
|
||||
)
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue