forked from qt-creator/qt-creator
For performance reason we want to get the qml modules directly from the file system. When the project storage is finished we can get the modules from there. Task-number: QDS-9542 Change-Id: I26d4b028fbf5ebc541fcd8e34d285ded1fb14935 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
24 lines
587 B
C++
24 lines
587 B
C++
// Copyright (C) 2017 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#pragma once
|
|
|
|
#include <utils/hostosinfo.h>
|
|
#include <utils/smallstring.h>
|
|
#include <utils/temporarydirectory.h>
|
|
|
|
inline
|
|
bool operator==(const QString &first, const char *second)
|
|
{
|
|
return first == QString::fromUtf8(second, int(std::strlen(second)));
|
|
}
|
|
|
|
namespace UnitTest {
|
|
|
|
inline ::Utils::PathString temporaryDirPath()
|
|
{
|
|
return ::Utils::PathString::fromQString(Utils::TemporaryDirectory::masterDirectoryPath());
|
|
}
|
|
|
|
} // namespace UnitTest
|