1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

InstallDialog: Add selective downloads descriptions as tooltips

This commit is contained in:
loathingKernel 2023-12-10 02:37:06 +02:00
parent d1d7e6d2e7
commit 845bc54a90
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD

View file

@ -205,7 +205,7 @@ class InstallDialog(QDialog):
layout = QVBoxLayout(widget)
layout.setSpacing(0)
for tag, info in sdl_data.items():
cb = TagCheckBox(info["name"], info["tags"])
cb = TagCheckBox(info["name"], info["description"], info["tags"])
if tag == "__required":
cb.setChecked(True)
cb.setDisabled(True)
@ -377,9 +377,10 @@ class InstallDialog(QDialog):
class TagCheckBox(QCheckBox):
def __init__(self, text, tags: List[str], parent=None):
def __init__(self, text, desc, tags: List[str], parent=None):
super(TagCheckBox, self).__init__(parent)
self.setText(text)
self.setToolTip(desc)
self.tags = tags
def isChecked(self) -> Union[bool, List[str]]: