comparison generator/typesystem.cpp @ 148:ae34188ddd84

private signals of QAbstractItemModel are now accessible
author eldar
date Sat, 13 Jun 2009 14:05:32 +0000
parents 3cb15c92ac28
children bc783e20da2b
comparison
equal deleted inserted replaced
147:4b423949c893 148:ae34188ddd84
105 // Function modifier tags (0x010000, 0x020000, ... , 0xf00000) 105 // Function modifier tags (0x010000, 0x020000, ... , 0xf00000)
106 Access = 0x010000, 106 Access = 0x010000,
107 Removal = 0x020000, 107 Removal = 0x020000,
108 Rename = 0x040000, 108 Rename = 0x040000,
109 ModifyArgument = 0x080000, 109 ModifyArgument = 0x080000,
110 PrivateSignal = 0x100000,
110 FunctionModifiers = 0xff0000, 111 FunctionModifiers = 0xff0000,
111 StoreResult = 0x110000, 112 StoreResult = 0x110000,
112 113
113 // Argument modifier tags (0x01000000 ... 0xf0000000) 114 // Argument modifier tags (0x01000000 ... 0xf0000000)
114 ConversionRule = 0x01000000, 115 ConversionRule = 0x01000000,
750 attributes["remove"] = QString(); 751 attributes["remove"] = QString();
751 attributes["rename"] = QString(); 752 attributes["rename"] = QString();
752 attributes["deprecated"] = QString("no"); 753 attributes["deprecated"] = QString("no");
753 attributes["associated-to"] = QString(); 754 attributes["associated-to"] = QString();
754 attributes["virtual-slot"] = QString("no"); 755 attributes["virtual-slot"] = QString("no");
756 attributes["allow-as-slot"] = QString("no");
757 attributes["private-signal"] = QString("no");
755 break; 758 break;
756 case StackElement::ModifyArgument: 759 case StackElement::ModifyArgument:
757 attributes["index"] = QString(); 760 attributes["index"] = QString();
758 attributes["replace-value"] = QString(); 761 attributes["replace-value"] = QString();
759 attributes["invalidate-after-use"] = QString("no"); 762 attributes["invalidate-after-use"] = QString("no");
1235 QString association = attributes["associated-to"]; 1238 QString association = attributes["associated-to"];
1236 if (!association.isEmpty()) 1239 if (!association.isEmpty())
1237 mod.association = association; 1240 mod.association = association;
1238 1241
1239 mod.modifiers |= (convertBoolean(attributes["virtual-slot"], "virtual-slot", false) ? Modification::VirtualSlot : 0); 1242 mod.modifiers |= (convertBoolean(attributes["virtual-slot"], "virtual-slot", false) ? Modification::VirtualSlot : 0);
1243 mod.modifiers |= (convertBoolean(attributes["allow-as-slot"], "allow-as-slot", false) ? Modification::AllowAsSlot : 0);
1244 mod.modifiers |= (convertBoolean(attributes["private-signal"], "private-signal", false) ? Modification::PrivateSignal : 0);
1240 1245
1241 m_function_mods << mod; 1246 m_function_mods << mod;
1242 } 1247 }
1243 break; 1248 break;
1244 case StackElement::ReplaceDefaultExpression: 1249 case StackElement::ReplaceDefaultExpression: