@@ -180,9 +180,12 @@ def setup(self):
180
180
# Widgets
181
181
self .label_info = QLabel ()
182
182
self .label_info .setText (
183
- _ ("Press the new shortcut and select <b>Ok</b> to confirm, "
184
- "click <b>Cancel</b> to revert to the previous state, "
185
- "or use <b>Clear</b> to unbind the command from a shortcut." )
183
+ _ (
184
+ "Press the new shortcut and select <b>Ok</b> to confirm, "
185
+ "click <b>Cancel</b> to revert to the previous state, "
186
+ "use <b>Clear</b> to unbind the command from a shortcut "
187
+ "or press <b>Default</b> to restore the default shortcut."
188
+ )
186
189
)
187
190
self .label_info .setAlignment (Qt .AlignTop | Qt .AlignLeft )
188
191
self .label_info .setWordWrap (True )
@@ -205,15 +208,15 @@ def setup(self):
205
208
self .label_warning .setAlignment (Qt .AlignTop | Qt .AlignLeft )
206
209
207
210
self .button_default = QPushButton (_ ('Default' ))
211
+ self .button_clear = QPushButton (_ ('Clear' ))
208
212
self .button_ok = QPushButton (_ ('Ok' ))
209
213
self .button_ok .setEnabled (False )
210
- self .button_clear = QPushButton (_ ('Clear' ))
211
214
self .button_cancel = QPushButton (_ ('Cancel' ))
212
215
button_box = QHBoxLayout ()
213
216
button_box .addWidget (self .button_default )
217
+ button_box .addWidget (self .button_clear )
214
218
button_box .addStretch (100 )
215
219
button_box .addWidget (self .button_ok )
216
- button_box .addWidget (self .button_clear )
217
220
button_box .addWidget (self .button_cancel )
218
221
219
222
# New Sequence button box
@@ -399,9 +402,13 @@ def update_warning(self):
399
402
tip_body += ' - {0}: <b>{1}</b><br>' .format (s .context , s .name )
400
403
tip_body += '<br>'
401
404
if len (conflicts ) == 1 :
402
- tip_override = _ ("Press 'Ok' to unbind it and assign it to" )
405
+ tip_override = _ (
406
+ "Press 'Ok' to unbind it and assign the shortcut to"
407
+ )
403
408
else :
404
- tip_override = _ ("Press 'Ok' to unbind them and assign it to" )
409
+ tip_override = _ (
410
+ "Press 'Ok' to unbind them and assign the shortcut to"
411
+ )
405
412
tip_override += ' <b>{}</b>.' .format (self .name )
406
413
tip = template .format (tip_title , tip_body , tip_override )
407
414
icon = ima .icon ('warning' )
0 commit comments