Changed tooltip from HTML to plaintext

This commit is contained in:
Aiden Sato 2021-03-11 13:15:39 -08:00 committed by Filipe Coelho
parent 41ab083ccc
commit 64dc781f1d
1 changed files with 8 additions and 10 deletions

View File

@ -1516,16 +1516,14 @@ class CadenceMainW(QMainWindow, ui_cadence.Ui_CadenceMainW):
self.label_app_comment.setText(comment)
def updateSystrayTooltip(self):
systrayText = "Cadence<br/>"
systrayText += "<font size=\"-1\">"
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("JACK Status"), self.label_jack_status.text())
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("Realtime"), self.label_jack_realtime.text())
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("DSP Load"), self.label_jack_dsp.text())
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("Xruns"), self.label_jack_xruns.text())
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("Buffer Size"), self.label_jack_bfsize.text())
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("Sample Rate"), self.label_jack_srate.text())
systrayText += "<b>%s:</b>&nbsp;%s" % (self.tr("Block Latency"), self.label_jack_latency.text())
systrayText += "</font><font size=\"-2\"><br/></font>"
systrayText = "Cadence\n"
systrayText += "%s: %s\n" % (self.tr("JACK Status"), self.label_jack_status.text())
systrayText += "%s: %s\n" % (self.tr("Realtime"), self.label_jack_realtime.text())
systrayText += "%s: %s\n" % (self.tr("DSP Load"), self.label_jack_dsp.text())
systrayText += "%s: %s\n" % (self.tr("Xruns"), self.label_jack_xruns.text())
systrayText += "%s: %s\n" % (self.tr("Buffer Size"), self.label_jack_bfsize.text())
systrayText += "%s: %s\n" % (self.tr("Sample Rate"), self.label_jack_srate.text())
systrayText += "%s: %s" % (self.tr("Block Latency"), self.label_jack_latency.text())
self.systray.setToolTip(systrayText)