forked from qt-creator/qt-creator
qmljs: add libPath utility method
Change-Id: Ie99d3cbff602e38418faeda565526793089a543c Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
@@ -198,6 +198,14 @@ ImportKey ImportKey::flatKey() const {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString ImportKey::libPath() const
|
||||||
|
{
|
||||||
|
QString res = splitPath.join(QString::fromLatin1("."));
|
||||||
|
if (res.isEmpty() && !splitPath.isEmpty())
|
||||||
|
return QLatin1String("");
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
QString ImportKey::path() const
|
QString ImportKey::path() const
|
||||||
{
|
{
|
||||||
QString res = splitPath.join(QString::fromLatin1("/"));
|
QString res = splitPath.join(QString::fromLatin1("/"));
|
||||||
|
@@ -108,6 +108,7 @@ public:
|
|||||||
int minorVersion;
|
int minorVersion;
|
||||||
|
|
||||||
QString path() const;
|
QString path() const;
|
||||||
|
QString libPath() const;
|
||||||
|
|
||||||
void addToHash(QCryptographicHash &hash) const;
|
void addToHash(QCryptographicHash &hash) const;
|
||||||
ImportKey flatKey() const;
|
ImportKey flatKey() const;
|
||||||
|
Reference in New Issue
Block a user