Set fixed size for simple dialogs

This commit is contained in:
Dmitri Bogomolov 2018-02-02 18:31:07 +02:00
parent 96b8cff0d1
commit b0271e51ff
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -44,7 +44,7 @@ class AboutDialog(QtGui.QDialog, RetranslateMixin):
except AttributeError:
pass
QtGui.QWidget.resize(self, QtGui.QWidget.sizeHint(self))
self.setFixedSize(QtGui.QWidget.sizeHint(self))
class IconGlossaryDialog(QtGui.QDialog, RetranslateMixin):
@ -59,18 +59,18 @@ class IconGlossaryDialog(QtGui.QDialog, RetranslateMixin):
"iconGlossaryDialog",
"You are using TCP port %1. (This can be changed in the settings)."
).arg(config.getint('bitmessagesettings', 'port')))
QtGui.QWidget.resize(self, QtGui.QWidget.sizeHint(self))
self.setFixedSize(QtGui.QWidget.sizeHint(self))
class HelpDialog(QtGui.QDialog, RetranslateMixin):
def __init__(self, parent=None):
super(HelpDialog, self).__init__(parent)
widgets.load('help.ui', self)
QtGui.QWidget.resize(self, QtGui.QWidget.sizeHint(self))
self.setFixedSize(QtGui.QWidget.sizeHint(self))
class ConnectDialog(QtGui.QDialog, RetranslateMixin):
def __init__(self, parent=None):
super(ConnectDialog, self).__init__(parent)
widgets.load('connect.ui', self)
QtGui.QWidget.resize(self, QtGui.QWidget.sizeHint(self))
self.setFixedSize(QtGui.QWidget.sizeHint(self))