comparison tools/duic/d/dwriteinitialization.cpp @ 82:420f2aab9ab6

temporary fix for "::" in duic for all types
author eldar
date Sun, 24 May 2009 17:07:11 +0000
parents 3d465c0a4f98
children c64698c80409
comparison
equal deleted inserted replaced
81:1750a803af74 82:420f2aab9ab6
1175 if (!propertyValue.contains(QLatin1String("::"))) { 1175 if (!propertyValue.contains(QLatin1String("::"))) {
1176 QString scope = className; 1176 QString scope = className;
1177 scope += QLatin1String("::"); 1177 scope += QLatin1String("::");
1178 propertyValue.prepend(scope); 1178 propertyValue.prepend(scope);
1179 } 1179 }
1180 propertyValue = propertyValue.replace("::", "."); // qtd
1181 break; 1180 break;
1182 case DomProperty::Set: 1181 case DomProperty::Set:
1183 propertyValue = p->elementSet(); 1182 propertyValue = p->elementSet();
1184 break; 1183 break;
1185 case DomProperty::Font: 1184 case DomProperty::Font:
1352 propertyValue = writeBrushInitialization(p->elementBrush()); 1351 propertyValue = writeBrushInitialization(p->elementBrush());
1353 break; 1352 break;
1354 case DomProperty::Unknown: 1353 case DomProperty::Unknown:
1355 break; 1354 break;
1356 } 1355 }
1356
1357 propertyValue = propertyValue.replace("::", "."); // qtd
1357 1358
1358 if (propertyValue.size()) { 1359 if (propertyValue.size()) {
1359 const char* defineC = 0; 1360 const char* defineC = 0;
1360 if (propertyName == QLatin1String("toolTip")) 1361 if (propertyName == QLatin1String("toolTip"))
1361 defineC = toolTipDefineC; 1362 defineC = toolTipDefineC;