allow word wrap of URL QLabels, and set MinimumHeight so they don't get shrunk in the layout

This commit is contained in:
Miguel Jacq 2018-02-07 15:59:13 +11:00
parent 37657ca453
commit 6cff5e06b8
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6

View file

@ -84,10 +84,14 @@ class ServerStatus(QtWidgets.QWidget):
# URL layout
url_font = QtGui.QFont()
self.url_description = QtWidgets.QLabel(strings._('gui_url_description', True))
self.url_description.setWordWrap(True)
self.url_description.setMinimumHeight(50)
self.url_label = QtWidgets.QLabel()
self.url_label.setStyleSheet('QLabel { color: #666666; font-size: 12px; }')
self.url = QtWidgets.QLabel()
self.url.setFont(url_font)
self.url.setWordWrap(True)
self.url.setMinimumHeight(60)
self.url.setStyleSheet('QLabel { background-color: #ffffff; color: #000000; padding: 10px; border: 1px solid #666666; }')
url_buttons_style = 'QPushButton { color: #3f7fcf; }'