Skip to content

Commit

Permalink
0.6.3 beta
Browse files Browse the repository at this point in the history
Fixed update dialog for large changelogs
  • Loading branch information
Ivan Titov committed Apr 24, 2020
1 parent 1691305 commit dff402f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions python2.7libs/package_manager/update_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dff402f

Please sign in to comment.