* @param url The url to link to * @param text The text to display for the link; if null, the url will be used * @return if macro `USE_LOCALHOST` is defined then " text|url ", otherwise " text|url " */
| 97 | * @return if macro `USE_LOCALHOST` is defined then "<a href=\"127.0.0.1:5001...\">text|url</a>", otherwise "<a href=\"url\">text|url</a>" |
| 98 | */ |
| 99 | QString makeLink(const char *url, const char *text) |
| 100 | { |
| 101 | return QString("<a href=\"%1\">%2</a>").arg(rehostUrl(url), QString::fromUtf8(text ? text : url)); |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Similar to `QMessageBox::critical` but with the following changes: |
no test coverage detected