mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Hint for "anonymous" login
* utility function for hyperlink * info about login
This commit is contained in:
committed by
Mat Sutcliffe
parent
731d39d783
commit
dc84c9b334
@@ -39,4 +39,11 @@ namespace BlackMisc
|
||||
return u"<p style='white-space:pre'>" % text % u"</p>";
|
||||
}
|
||||
|
||||
QString asHyperlink(const QString &url, const QString &text)
|
||||
{
|
||||
return text.isEmpty() ?
|
||||
u"<a href=\"" % url % u"\">" % url % u"</a>" :
|
||||
u"<a href=\"" % url % u"\">" % text % u"</a>";
|
||||
}
|
||||
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user