src/activeqt/container/qaxbase.cpp
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
--- a/src/activeqt/container/qaxbase.cpp	Mon Jun 21 22:38:13 2010 +0100
+++ b/src/activeqt/container/qaxbase.cpp	Thu Jul 22 16:41:55 2010 +0100
@@ -1353,11 +1353,9 @@
 
 
 // There seams to be a naming problem in mingw headers
-#ifdef Q_CC_GNU
-#ifndef COAUTHIDENTITY
+#if defined(Q_CC_GNU) && !defined(COAUTHIDENTITY) && !defined(__MINGW64_VERSION_MAJOR)
 #define COAUTHIDENTITY AUTH_IDENTITY
 #endif
-#endif
 
 
 /*!
@@ -2543,6 +2541,11 @@
                     break;
             }
             if (funcdesc->invkind == INVOKE_PROPERTYPUT) {
+                // remove the typename guessed for property setters
+                // its done only for setter's with more than one parameter.
+                if (funcdesc->cParams - funcdesc->cParamsOpt > 1) {
+                    type.clear();
+                }
                 QByteArray set;
                 if (isupper(prototype.at(0))) {
                     set = "Set";