Set sizePolicy of Command to minimumExpanding.

This commit is contained in:
Florian Bruhin 2014-02-13 07:16:47 +01:00
parent 4271200846
commit d7f58015bb

View File

@ -178,7 +178,7 @@ class Command(QLineEdit):
self.setValidator(CommandValidator())
self.returnPressed.connect(self.process_cmdline)
self.textEdited.connect(self._histbrowse_stop)
self.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Ignored)
self.setSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.Ignored)
for (key, handler) in [
(Qt.Key_Escape, self.esc_pressed),