This commit is contained in:
Kovid Goyal 2024-03-13 21:37:17 +05:30
parent 5b53a49ba1
commit 4bd400c7d6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -35,10 +35,9 @@ class Region(QDialog):
self.const_aspect = ca = QCheckBox(_('Keep the ratio of width to height fixed')) self.const_aspect = ca = QCheckBox(_('Keep the ratio of width to height fixed'))
ca.toggled.connect(self.const_aspect_toggled) ca.toggled.connect(self.const_aspect_toggled)
l.addRow(ca) l.addRow(ca)
k = QKeySequence('alt+1', QKeySequence.SequenceFormat.PortableText) k = QKeySequence('alt+1', QKeySequence.SequenceFormat.PortableText).toString(QKeySequence.SequenceFormat.NativeText).partition('+')[0]
la = QLabel('<p>'+_('Note that holding down the {} key while dragging the selection handles' la = QLabel('<p>'+_('Note that holding down the {} key while dragging the selection handles'
' will resize the selection while preserving its aspect ratio.').format( ' will resize the selection while preserving its aspect ratio.').format(k))
k.toString(QKeySequence.SequenceFormat.NativeText)))
la.setWordWrap(True) la.setWordWrap(True)
la.setMinimumWidth(400) la.setMinimumWidth(400)
l.addRow(la) l.addRow(la)