diff --git a/python2.7libs/package_manager/update_dialog.py b/python2.7libs/package_manager/update_dialog.py index 9811a98..7b48556 100644 --- a/python2.7libs/package_manager/update_dialog.py +++ b/python2.7libs/package_manager/update_dialog.py @@ -52,10 +52,13 @@ def __init__(self, parent=None): self.new_version_label = QLabel() form_layout.addRow('New version', self.new_version_label) - self.update_changes_label = QLabel() - self.update_changes_label.setWordWrap(True) - # Todo: scroll area - self.update_changes_label.setMaximumHeight(800) + self.update_changes_label = QTextEdit() + size_policy = self.update_changes_label.sizePolicy() + size_policy.setVerticalStretch(1) + self.update_changes_label.setSizePolicy(size_policy) + self.update_changes_label.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) + self.update_changes_label.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn) + self.update_changes_label.setReadOnly(True) form_layout.addRow('Changes', self.update_changes_label) buttons_layout = QHBoxLayout()