make help text selectable

This allows the user to copy e.g. values so that they don't have to retype them which might introduce typos.
This commit is contained in:
ijgnd 2020-04-15 18:59:04 +02:00 committed by GitHub
parent b018dba073
commit e745677145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1282,6 +1282,7 @@ class ConfigEditor(QDialog):
self.mgr = dlg.mgr
self.form = aqt.forms.addonconf.Ui_Dialog()
self.form.setupUi(self)
self.form.label.setTextInteractionFlags(Qt.TextSelectableByMouse)
restore = self.form.buttonBox.button(QDialogButtonBox.RestoreDefaults)
restore.clicked.connect(self.onRestoreDefaults)
self.setupFonts()