forked from qt-creator/qt-creator
QmlDesigner: Add missing const
Change-Id: I144c53bd3c9d1fe49edb377a5cc724562ea53d07 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -98,8 +98,8 @@ public:
|
||||
void changeImports(const QList<Import> &importsToBeAdded, const QList<Import> &importsToBeRemoved);
|
||||
void setPossibleImports(const QList<Import> &possibleImports);
|
||||
void setUsedImports(const QList<Import> &usedImports);
|
||||
bool hasImport(const Import &import, bool ignoreAlias = true, bool allowHigherVersion = false);
|
||||
bool isImportPossible(const Import &import, bool ignoreAlias = true, bool allowHigherVersion = false);
|
||||
bool hasImport(const Import &import, bool ignoreAlias = true, bool allowHigherVersion = false) const;
|
||||
bool isImportPossible(const Import &import, bool ignoreAlias = true, bool allowHigherVersion = false) const;
|
||||
QString pathForImport(const Import &import);
|
||||
QStringList importPaths() const;
|
||||
Import highestPossibleImport(const QString &importPath);
|
||||
|
@@ -1897,7 +1897,7 @@ static bool compareVersions(const QString &version1, const QString &version2, bo
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Model::hasImport(const Import &import, bool ignoreAlias, bool allowHigherVersion)
|
||||
bool Model::hasImport(const Import &import, bool ignoreAlias, bool allowHigherVersion) const
|
||||
{
|
||||
if (imports().contains(import))
|
||||
return true;
|
||||
@@ -1915,7 +1915,7 @@ bool Model::hasImport(const Import &import, bool ignoreAlias, bool allowHigherVe
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Model::isImportPossible(const Import &import, bool ignoreAlias, bool allowHigherVersion)
|
||||
bool Model::isImportPossible(const Import &import, bool ignoreAlias, bool allowHigherVersion) const
|
||||
{
|
||||
if (imports().contains(import))
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user