forked from qt-creator/qt-creator
Core: Add a convenience .withSuffix(QString) method
Change-Id: Ia6a1802376442d3e3ccdce2b0a061c71edafa8c9 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -283,6 +283,12 @@ Id Id::withSuffix(const char *suffix) const
|
||||
return Id(ba.constData());
|
||||
}
|
||||
|
||||
Id Id::withSuffix(const QString &suffix) const
|
||||
{
|
||||
const QByteArray ba = name() + suffix.toUtf8();
|
||||
return Id(ba.constData());
|
||||
}
|
||||
|
||||
/*!
|
||||
Constructs a derived id.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user