asset reference links 😎 (#1363)

Adds urls to unit info pages that don't have data.

(cherry picked from commit 5f5b5f69e3)
This commit is contained in:
Chris Seagraves
2021-06-30 14:04:06 -05:00
committed by Brock Greman
parent c7d3f1a340
commit de9d388b96
4 changed files with 14 additions and 2 deletions

View File

@@ -94,6 +94,9 @@ class QUnitInfoWindow(QDialog):
self.details_text = QTextBrowser()
self.details_text.setProperty("style", "info-desc")
self.details_text.setText(unit_type.description)
self.details_text.setOpenExternalLinks(
True
) # in aircrafttype.py and groundunittype.py, for the descriptions, if No Data. including a google search link
self.gridLayout.addWidget(self.details_text, 3, 0)
self.layout.addLayout(self.gridLayout, 1, 0)