forked from qt-creator/qt-creator
Compile fixes with Qt 6
Change-Id: Ia5335bef6aeaff3ce12339db52d96793ff588824 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -89,7 +89,7 @@ void NodeInstanceSignalSpy::registerChildObject(const QMetaProperty &metaPropert
|
|||||||
if (metaProperty.isReadable()
|
if (metaProperty.isReadable()
|
||||||
&& !metaProperty.isWritable()
|
&& !metaProperty.isWritable()
|
||||||
&& QmlPrivateGate::isPropertyQObject(metaProperty)
|
&& QmlPrivateGate::isPropertyQObject(metaProperty)
|
||||||
&& QLatin1String(metaProperty.name()) != "parent") {
|
&& QLatin1String(metaProperty.name()) != QLatin1String("parent")) {
|
||||||
QObject *childObject = QmlPrivateGate::readQObjectProperty(metaProperty, spiedObject);
|
QObject *childObject = QmlPrivateGate::readQObjectProperty(metaProperty, spiedObject);
|
||||||
|
|
||||||
if (childObject) {
|
if (childObject) {
|
||||||
|
@@ -75,8 +75,8 @@ static bool isValidIncludePathToken(const ClangBackEnd::TokenInfoContainer &toke
|
|||||||
if (!token.extraInfo.includeDirectivePath)
|
if (!token.extraInfo.includeDirectivePath)
|
||||||
return false;
|
return false;
|
||||||
const Utf8String &tokenName = token.extraInfo.token;
|
const Utf8String &tokenName = token.extraInfo.token;
|
||||||
return !tokenName.startsWith("include") && tokenName != "<" && tokenName != ">"
|
return !tokenName.startsWith("include") && tokenName != Utf8String("<")
|
||||||
&& tokenName != "#";
|
&& tokenName != Utf8String(">") && tokenName != Utf8String("#");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int includePathStartIndex(const QVector<ClangBackEnd::TokenInfoContainer> &marks,
|
static int includePathStartIndex(const QVector<ClangBackEnd::TokenInfoContainer> &marks,
|
||||||
|
@@ -303,7 +303,7 @@ void pathComplete(const AssistInterface *interface, QList<AssistProposalItemInte
|
|||||||
|
|
||||||
// For pragmatic reasons, we don't support spaces in file names here.
|
// For pragmatic reasons, we don't support spaces in file names here.
|
||||||
static const auto canOccurInFilePath = [](const QChar &c) {
|
static const auto canOccurInFilePath = [](const QChar &c) {
|
||||||
return c.isLetterOrNumber() || c == '.' || c == '/' || c == "_" || c == '-';
|
return c.isLetterOrNumber() || c == '.' || c == '/' || c == '_' || c == '-';
|
||||||
};
|
};
|
||||||
|
|
||||||
int pos = interface->position();
|
int pos = interface->position();
|
||||||
|
Reference in New Issue
Block a user