More stupid PyQt enums

This commit is contained in:
Kovid Goyal 2020-12-20 10:56:46 +05:30
parent 700542e74a
commit c40135d28c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -677,7 +677,7 @@ class EditorWidget(QTextEdit, LineEditECM): # {{{
'will stop working if the file is moved.'))
la.setWordWrap(True)
la.setStyleSheet('QLabel { margin-bottom: 1.5ex }')
l.setWidget(0, l.SpanningRole, la)
l.setWidget(0, QFormLayout.ItemRole.SpanningRole, la)
l.addRow(_('Enter &URL:'), d.url)
l.addRow(_('Treat the URL as an &image'), d.treat_as_image)
l.addRow(_('Enter &name (optional):'), d.name)