forked from qt-creator/qt-creator
debugger: add dumper for Core::Id
Change-Id: Ibcc5b0e80acf037ed87b79ae4f52a1b0677388eb Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -134,4 +134,10 @@ QString Id::toString() const
|
||||
return QString::fromUtf8(stringFromId[m_id]);
|
||||
}
|
||||
|
||||
// For debugging purposes
|
||||
CORE_EXPORT const char *nameForId(int id)
|
||||
{
|
||||
return (stringFromId.constData() + id)->constData();
|
||||
}
|
||||
|
||||
} // namespace Core
|
||||
|
||||
Reference in New Issue
Block a user