mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Ref T401, update functions for crashpad info in CApplication
This commit is contained in:
@@ -20,6 +20,13 @@ namespace BlackMisc
|
||||
return QStringLiteral("{ %1, %2 }").arg(this->getInfo(), this->getUserName());
|
||||
}
|
||||
|
||||
void CCrashInfo::appendInfo(const QString &extraInfo)
|
||||
{
|
||||
if (extraInfo.isEmpty()) { return; }
|
||||
if (m_info.isEmpty()) { this->setInfo(extraInfo); return; }
|
||||
m_info += QStringLiteral(" ") % extraInfo;
|
||||
}
|
||||
|
||||
CVariant CCrashInfo::propertyByIndex(const CPropertyIndex &index) const
|
||||
{
|
||||
if (index.isMyself()) { return CVariant::from(*this); }
|
||||
|
||||
@@ -45,6 +45,9 @@ namespace BlackMisc
|
||||
//! Set info
|
||||
void setInfo(const QString &info) { m_info = info; }
|
||||
|
||||
//! Append some info
|
||||
void appendInfo(const QString &extraInfo);
|
||||
|
||||
//! \copydoc BlackMisc::Mixin::String::toQString
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user