changeset 83:c64698c80409

duic: apply cursor.patch from denis.
author SokoL_SD
date Sun, 24 May 2009 18:26:11 +0000
parents 420f2aab9ab6
children 2edf95ad41e5
files tools/duic/d/dwriteinitialization.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/duic/d/dwriteinitialization.cpp	Sun May 24 17:07:11 2009 +0000
+++ b/tools/duic/d/dwriteinitialization.cpp	Sun May 24 18:26:11 2009 +0000
@@ -1161,13 +1161,13 @@
             }
             break;
         case DomProperty::Cursor:
-            propertyValue = QString::fromLatin1("QCursor(cast(Qt.CursorShape)(%1))")
+            propertyValue = QString::fromLatin1("new QCursor(cast(Qt.CursorShape)(%1))")
                             .arg(p->elementCursor());
             break;
         case DomProperty::CursorShape:
             if (p->hasAttributeStdset() && !p->attributeStdset())
                 varNewName += QLatin1String(".viewport()");
-            propertyValue = QString::fromLatin1("QCursor(Qt.%1)")
+            propertyValue = QString::fromLatin1("new QCursor(Qt.%1)")
                             .arg(p->elementCursorShape());
             break;
         case DomProperty::Enum: