forked from qt-creator/qt-creator
		
	CppEditor: Fix following signals/slots in old-style connects
... if the first argument is a call to a function returning a pointer to QObject. Fixes: QTCREATORBUG-13265 Change-Id: I12c2d07331a0c6dca56ad55c518240fd74be3dca Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
		@@ -1085,7 +1085,12 @@ ClassOrNamespace *ResolveExpression::baseExpression(const QList<LookupItem> &bas
 | 
			
		||||
            qDebug() << "-  after typedef resolving:" << oo(ty);
 | 
			
		||||
 | 
			
		||||
        if (accessOp == T_ARROW) {
 | 
			
		||||
            if (PointerType *ptrTy = ty->asPointerType()) {
 | 
			
		||||
            PointerType *ptrTy = ty->asPointerType();
 | 
			
		||||
            if (!ptrTy) {
 | 
			
		||||
                if (Function * const func = ty->asFunctionType())
 | 
			
		||||
                    ptrTy = func->returnType()->asPointerType();
 | 
			
		||||
            }
 | 
			
		||||
            if (ptrTy) {
 | 
			
		||||
                FullySpecifiedType type = ptrTy->elementType();
 | 
			
		||||
                if (ClassOrNamespace *binding
 | 
			
		||||
                        = findClassForTemplateParameterInExpressionScope(r.binding(),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user