Make text selectable in Settings window

This commit is contained in:
Raffson
2023-11-12 15:28:14 +01:00
parent 6cfa52740e
commit 82e2f1c2b5
2 changed files with 4 additions and 1 deletions

View File

@@ -164,6 +164,7 @@ class AutoSettingsLayout(QGridLayout):
label = QLabel(text)
if description.tooltip is not None:
label.setToolTip(description.tooltip)
label.setTextInteractionFlags(Qt.TextInteractionFlag.TextSelectableByMouse)
self.addWidget(label, row, 0)
def add_checkbox_for(self, row: int, name: str, description: BooleanOption) -> None:

View File

@@ -73,7 +73,9 @@ class PluginOptionsBox(QGroupBox):
self.widgets: Dict[str, QWidget] = {}
for row, option in enumerate(plugin.options):
layout.addWidget(QLabel(option.name), row, 0)
label = QLabel(option.name)
label.setTextInteractionFlags(Qt.TextInteractionFlag.TextSelectableByMouse)
layout.addWidget(label, row, 0)
val = option.get_value
if type(val) == bool: