mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
refs #523 Implement CLogCategoryList::toQString so the default implementation provided by CSequence is not used.
This commit is contained in:
@@ -24,6 +24,11 @@ namespace BlackMisc
|
||||
return transform([](const CLogCategory &cat) { return cat.toQString(); });
|
||||
}
|
||||
|
||||
QString CLogCategoryList::toQString(bool i18n) const
|
||||
{
|
||||
return convertToQString(i18n);
|
||||
}
|
||||
|
||||
QString CLogCategoryList::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n); // log categories are always Latin-1
|
||||
|
||||
@@ -82,6 +82,9 @@ namespace BlackMisc
|
||||
//! Convert each of the categories to a QString and return the result as a QStringList.
|
||||
QStringList toQStringList() const;
|
||||
|
||||
//! \copydoc BlackMisc::CValueObject::toQString
|
||||
QString toQString(bool i18n = false) const;
|
||||
|
||||
//! Convert a string list, such as that returned by toQStringList(), into a CLogCategoryList.
|
||||
static CLogCategoryList fromQStringList(const QStringList &stringList);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user