+
+QString formatTooltip(const QString & tooltip)
+{
+ QString formatted =
+ "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">"
+ " p, li { white-space: pre-wrap; } </style></head><body style=\" font-family:'Sans Serif';"
+ " font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">"
+ "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; "
+ "-qt-block-indent:0; text-indent:0px;\">" +
+ tooltip +
+ "</p></body></html>";
+ return formatted;
+}
+