Ref T401, update functions for crashpad info in CApplication

This commit is contained in:
Klaus Basan
2018-11-01 16:04:42 +01:00
parent bb34bc7939
commit 17382a0019
4 changed files with 34 additions and 3 deletions

View File

@@ -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); }

View File

@@ -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;