forked from qt-creator/qt-creator
Added overload for FileName::isChildOf
Change-Id: I9c5b0e7f3eda13ef3b6903723c27267d090b9d24 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
committed by
Daniel Teske
parent
fd817c675c
commit
9335392032
@@ -535,6 +535,12 @@ bool FileName::isChildOf(const FileName &s) const
|
||||
return at(s.size()) == QLatin1Char('/');
|
||||
}
|
||||
|
||||
/// \overload
|
||||
bool FileName::isChildOf(const QDir &dir) const
|
||||
{
|
||||
return isChildOf(Utils::FileName::fromString(dir.absolutePath()));
|
||||
}
|
||||
|
||||
/// \returns whether FileName endsWith \a s
|
||||
bool FileName::endsWith(const QString &s) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user