Changeset 769 for trunk/src/tools/moc/moc.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/tools/moc/moc.cpp
r651 r769 659 659 parseSlotInPrivate(&def, access); 660 660 break; 661 case Q_PRIVATE_PROPERTY_TOKEN: 662 parsePrivateProperty(&def); 663 break; 661 664 case ENUM: { 662 665 EnumDef enumDef; … … 873 876 } 874 877 875 876 void Moc::parseProperty(ClassDef *def) 877 { 878 next(LPAREN); 879 PropertyDef propDef; 878 void Moc::createPropertyDef(PropertyDef &propDef) 879 { 880 880 QByteArray type = parseType().name; 881 881 if (type.isEmpty()) … … 965 965 } 966 966 } 967 next(RPAREN);968 967 if (propDef.read.isNull()) { 969 968 QByteArray msg; … … 989 988 warning(msg.constData()); 990 989 } 990 } 991 992 void Moc::parseProperty(ClassDef *def) 993 { 994 next(LPAREN); 995 PropertyDef propDef; 996 createPropertyDef(propDef); 997 next(RPAREN); 998 999 1000 if(!propDef.notify.isEmpty()) 1001 def->notifyableProperties++; 1002 def->propertyList += propDef; 1003 } 1004 1005 void Moc::parsePrivateProperty(ClassDef *def) 1006 { 1007 next(LPAREN); 1008 PropertyDef propDef; 1009 next(IDENTIFIER); 1010 propDef.inPrivateClass = lexem(); 1011 while (test(SCOPE)) { 1012 propDef.inPrivateClass += lexem(); 1013 next(IDENTIFIER); 1014 propDef.inPrivateClass += lexem(); 1015 } 1016 // also allow void functions 1017 if (test(LPAREN)) { 1018 next(RPAREN); 1019 propDef.inPrivateClass += "()"; 1020 } 1021 1022 next(COMMA); 1023 1024 createPropertyDef(propDef); 991 1025 992 1026 if(!propDef.notify.isEmpty())
Note:
See TracChangeset
for help on using the changeset viewer.