[view] fix: crashing when QT components sizes are not integers

This commit is contained in:
Vinicius Moreira
2021-11-17 15:14:27 -03:00
parent b95de10268
commit b50b067158
4 changed files with 23 additions and 22 deletions

View File

@@ -104,8 +104,8 @@ class InfoDialog(QDialog):
lower_container.layout().addWidget(self.bt_close)
layout.addWidget(lower_container)
self.setMinimumWidth(self.gbox_info.sizeHint().width() * 1.2)
self.setMaximumHeight(screen_size.height() * 0.8)
self.setMinimumWidth(int(self.gbox_info.sizeHint().width() * 1.2))
self.setMaximumHeight(int(screen_size.height() * 0.8))
self.adjustSize()
def _gen_show_button(self, idx: int, val):