Browse Source

Changed tooltip from HTML to plaintext

tags/v0.9.2
Aiden Sato Filipe Coelho <falktx@falktx.com> 3 years ago
parent
commit
64dc781f1d
1 changed files with 8 additions and 10 deletions
  1. +8
    -10
      src/cadence.py

+ 8
- 10
src/cadence.py 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)



Loading…
Cancel
Save