mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Ref T401, utility functions info for crashpad
This commit is contained in:
@@ -55,6 +55,16 @@ namespace BlackMisc
|
||||
return this->getRealName() % separator % this->getHomeBase().asString();
|
||||
}
|
||||
|
||||
QString CUser::getRealNameAndId() const
|
||||
{
|
||||
if (this->hasRealName())
|
||||
{
|
||||
if (this->hasId()) { return this->getRealName() % QStringLiteral(" (") % this->getId() % QStringLiteral(")"); }
|
||||
return this->getRealName();
|
||||
}
|
||||
return this->getId();
|
||||
}
|
||||
|
||||
void CUser::setCallsign(const CCallsign &callsign)
|
||||
{
|
||||
m_callsign = callsign;
|
||||
|
||||
Reference in New Issue
Block a user