mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Make text selectable in Settings window
This commit is contained in:
parent
6cfa52740e
commit
82e2f1c2b5
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user