MCPcopy Create free account
hub / github.com/DistroAV/DistroAV / makeLink

Function makeLink

src/plugin-main.cpp:99–102  ·  view source on GitHub ↗

* @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 " */

Source from the content-addressed store, hash-verified

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 */
99QString 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:

Callers 3

obs_module_loadFunction · 0.85
OutputSettingsMethod · 0.85
PluginUpdateMethod · 0.85

Calls 1

rehostUrlFunction · 0.85

Tested by

no test coverage detected