Changeset 561 for trunk/src/tools/moc
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/tools/moc/generator.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 46 46 #include <stdio.h> 47 47 48 49 48 50 QT_BEGIN_NAMESPACE 49 50 // if the flags change, you MUST to change it in qmetaobject.cpp too51 enum PropertyFlags {52 Invalid = 0x00000000,53 Readable = 0x00000001,54 Writable = 0x00000002,55 Resettable = 0x00000004,56 EnumOrFlag = 0x00000008,57 StdCppSet = 0x00000100,58 // Override = 0x00000200,59 Designable = 0x00001000,60 ResolveDesignable = 0x00002000,61 Scriptable = 0x00004000,62 ResolveScriptable = 0x00008000,63 Stored = 0x00010000,64 ResolveStored = 0x00020000,65 Editable = 0x00040000,66 ResolveEditable = 0x00080000,67 User = 0x00100000,68 ResolveUser = 0x00200000,69 Notify = 0x0040000070 };71 enum MethodFlags {72 AccessPrivate = 0x00,73 AccessProtected = 0x01,74 AccessPublic = 0x02,75 MethodMethod = 0x00,76 MethodSignal = 0x04,77 MethodSlot = 0x08,78 MethodConstructor = 0x0c,79 MethodCompatibility = 0x10,80 MethodCloned = 0x20,81 MethodScriptable = 0x4082 };83 51 84 52 uint qvariant_nameToType(const char* name) … … 108 76 { 109 77 return qvariant_nameToType(type) != 0; 78 79 80 81 82 83 84 85 110 86 } 111 87 … … 195 171 qualifiedClassNameIdentifier.replace(':', '_'); 196 172 197 int index = 1 2;173 int index = 1; 198 174 fprintf(out, "static const uint qt_meta_data_%s[] = {\n", qualifiedClassNameIdentifier.constData()); 199 175 fprintf(out, "\n // content:\n"); 200 fprintf(out, " %4d, // revision\n", 2);176 fprintf(out, " %4d, // revision\n", ); 201 177 fprintf(out, " %4d, // classname\n", strreg(cdef->qualified)); 202 178 fprintf(out, " %4d, %4d, // classinfo\n", cdef->classInfoList.count(), cdef->classInfoList.count() ? index : 0); … … 217 193 fprintf(out, " %4d, %4d, // constructors\n", isConstructible ? cdef->constructorList.count() : 0, 218 194 isConstructible ? index : 0); 195 196 197 198 219 199 220 200 // … … 313 293 for (int i = 0; i < cdef->propertyList.count(); ++i) { 314 294 const PropertyDef &p = cdef->propertyList.at(i); 315 if (!isVariantType(p.type) && !metaTypes.contains(p.type)) { 295 if (!isVariantType(p.type) && !metaTypes.contains(p.type) && !p.type.contains('*') && 296 !p.type.contains('<') && !p.type.contains('>')) { 316 297 int s = p.type.lastIndexOf("::"); 317 298 if (s > 0) { … … 323 304 } 324 305 if (!extraList.isEmpty()) { 306 307 308 309 310 311 325 312 fprintf(out, "static const QMetaObject *qt_meta_extradata_%s[] = {\n ", qualifiedClassNameIdentifier.constData()); 326 313 for (int i = 0; i < extraList.count(); ++i) { 327 if (i) 328 fprintf(out, ",\n "); 329 fprintf(out, " &%s::staticMetaObject", extraList.at(i).constData()); 330 } 331 fprintf(out, ",0\n};\n\n"); 314 fprintf(out, " &%s::staticMetaObject,\n", extraList.at(i).constData()); 315 } 316 fprintf(out, "#endif //Q_NO_DATA_RELOCATION\n"); 317 fprintf(out, " 0\n};\n\n"); 332 318 } 333 319 … … 349 335 // Finally create and initialize the static meta object 350 336 // 351 352 337 if (isQt) 353 338 fprintf(out, "const QMetaObject QObject::staticQtMetaObject = {\n"); … … 369 354 fprintf(out, "};\n"); 370 355 371 if (isQt || !cdef->hasQObject)356 ift) 372 357 return; 373 358 374 fprintf(out, "\nconst QMetaObject *%s::metaObject() const\n{\n return &staticMetaObject;\n}\n", 359 // 360 // Generate static meta object accessor (needed for symbian, because DLLs do not support data imports. 361 // 362 fprintf(out, "\n#ifdef Q_NO_DATA_RELOCATION\n"); 363 fprintf(out, "const QMetaObject &%s::getStaticMetaObject() { return staticMetaObject; }\n", cdef->qualified.constData()); 364 fprintf(out, "#endif //Q_NO_DATA_RELOCATION\n"); 365 366 if (!cdef->hasQObject) 367 return; 368 369 fprintf(out, "\nconst QMetaObject *%s::metaObject() const\n{\n return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;\n}\n", 375 370 cdef->qualified.constData()); 371 376 372 // 377 373 // Generate smart cast function … … 546 542 if (!isVariantType(p.type)) { 547 543 flags |= EnumOrFlag; 548 } else {544 } else { 549 545 flags |= qvariant_nameToType(p.type) << 24; 550 546 } … … 590 586 flags |= Notify; 591 587 592 fprintf(out, " %4d, %4d, 0x%.8x,\n", 593 strreg(p.name), 594 strreg(p.type), 595 flags); 588 if (p.constant) 589 flags |= Constant; 590 if (p.final) 591 flags |= Final; 592 593 fprintf(out, " %4d, %4d, ", 594 strreg(p.name), 595 strreg(p.type)); 596 if (!(flags >> 24) && isQRealType(p.type)) 597 fprintf(out, "(QMetaType::QReal << 24) | "); 598 fprintf(out, "0x%.8x,\n", flags); 596 599 } 597 600 … … 723 726 needUser |= p.user.endsWith(')'); 724 727 } 725 bool needAnything = needGet726 | needSet727 | needReset728 | needDesignable729 | needScriptable730 | needStored731 | needEditable732 | needUser;733 if (!needAnything)734 goto skip_properties;735 728 fprintf(out, "\n#ifndef QT_NO_PROPERTIES\n "); 736 729 … … 902 895 fprintf(out, "\n#endif // QT_NO_PROPERTIES"); 903 896 } 904 skip_properties:905 897 if (methodList.size() || cdef->signalList.size() || cdef->propertyList.size()) 906 898 fprintf(out, "\n "); … … 919 911 for (int ctorindex = 0; ctorindex < cdef->constructorList.count(); ++ctorindex) { 920 912 fprintf(out, " case %d: { %s *_r = new %s(", ctorindex, 921 cdef-> classname.constData(), cdef->classname.constData());913 cdef->.constData()); 922 914 const FunctionDef &f = cdef->constructorList.at(ctorindex); 923 915 int offset = 1; … … 937 929 938 930 if (!isQObject) 939 fprintf(out, " _id = %s::staticMetaObject.superClass()->static_metacall(_c, _id, _a);\n", cdef-> classname.constData());931 fprintf(out, " _id = %s::staticMetaObject.superClass()->static_metacall(_c, _id, _a);\n", cdef->.constData()); 940 932 941 933 fprintf(out, " if (_id < 0)\n return _id;\n"); … … 996 988 fprintf(out, ", const_cast<void*>(reinterpret_cast<const void*>(&_t%d))", i); 997 989 fprintf(out, " };\n"); 998 int n = 0; 999 for (i = 0; i < def->arguments.count(); ++i) 1000 if (def->arguments.at(i).isDefault) 1001 ++n; 1002 if (n) 1003 fprintf(out, " QMetaObject::activate(%s, &staticMetaObject, %d, %d, _a);\n", thisPtr.constData(), index, index + n); 1004 else 1005 fprintf(out, " QMetaObject::activate(%s, &staticMetaObject, %d, _a);\n", thisPtr.constData(), index); 990 fprintf(out, " QMetaObject::activate(%s, &staticMetaObject, %d, _a);\n", thisPtr.constData(), index); 1006 991 if (def->normalizedType.size()) 1007 992 fprintf(out, " return _t0;\n"); … … 1162 1147 const ArgumentDef &a = f.arguments.at(j); 1163 1148 if (j) { 1164 sig += ",";1165 arguments += ",";1149 sig += ; 1150 arguments += ; 1166 1151 } 1167 1152 sig += a.normalizedType; -
trunk/src/tools/moc/generator.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/keywords.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/main.cpp
r93 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 219 219 } 220 220 221 // report Qt usage for commercial customers with a "metered license" (currently experimental)222 #if QT_EDITION != QT_EDITION_OPENSOURCE223 #ifdef QT_CONFIGURE_BINARIES_PATH224 const char *binariesPath = QT_CONFIGURE_BINARIES_PATH;225 QString reporterPath = QString::fromLocal8Bit(binariesPath) + QDir::separator()226 + QLatin1String("qtusagereporter");227 #if defined(Q_OS_WIN)228 reporterPath += QLatin1String(".exe");229 #endif230 if (QFile::exists(reporterPath))231 system(qPrintable(reporterPath + QLatin1String(" moc")));232 #endif233 #endif234 235 221 int argc = argv.count(); 236 222 -
trunk/src/tools/moc/moc.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 338 338 { 339 339 def->isVirtual = false; 340 while (test(INLINE) || test(STATIC) || test(VIRTUAL) 341 || testFunctionAttribute(def)) { 342 if (lookup() == VIRTUAL) 343 def->isVirtual = true; 344 } 340 //skip modifiers and attributes 341 while (test(INLINE) || test(STATIC) || 342 (test(VIRTUAL) && (def->isVirtual = true)) //mark as virtual 343 || testFunctionAttribute(def)) {} 345 344 bool templateFunction = (lookup() == TEMPLATE); 346 345 def->type = parseType(); … … 430 429 { 431 430 def->isVirtual = false; 432 while (test(EXPLICIT) || test(INLINE) || test(STATIC) || test(VIRTUAL) 433 || testFunctionAttribute(def)) { 434 if (lookup() == VIRTUAL) 435 def->isVirtual = true; 436 } 431 //skip modifiers and attributes 432 while (test(EXPLICIT) || test(INLINE) || test(STATIC) || 433 (test(VIRTUAL) && (def->isVirtual = true)) //mark as virtual 434 || testFunctionAttribute(def)) {} 437 435 bool tilde = test(TILDE); 438 436 def->type = parseType(); … … 753 751 754 752 if (!noInclude) { 755 if (includePath.size() && includePath.right(1) != "/")756 includePath += "/";753 if (includePath.size() && ) 754 includePath += ; 757 755 for (int i = 0; i < includeFiles.size(); ++i) { 758 756 QByteArray inc = includeFiles.at(i); … … 760 758 if (includePath.size() && includePath != "./") 761 759 inc.prepend(includePath); 762 inc = "\"" + inc + "\"";760 inc = ; 763 761 } 764 762 fprintf(out, "#include %s\n", inc.constData()); … … 767 765 if (classList.size() && classList.first().classname == "Qt") 768 766 fprintf(out, "#include <QtCore/qobject.h>\n"); 767 768 769 769 770 770 771 fprintf(out, "#if !defined(Q_MOC_OUTPUT_REVISION)\n" … … 860 861 parseFunction(&funcDef); 861 862 if (funcDef.isVirtual) 862 error("Signals cannot be declared virtual");863 ("Signals cannot be declared virtual"); 863 864 if (funcDef.inlineCode) 864 865 error("Not a signal declaration"); … … 899 900 else if (type == "ULongLong") 900 901 type = "qulonglong"; 902 903 904 901 905 propDef.type = type; 902 906 … … 905 909 while (test(IDENTIFIER)) { 906 910 QByteArray l = lexem(); 911 912 913 914 915 916 917 918 919 907 920 QByteArray v, v2; 908 921 if (test(LPAREN)) { … … 960 973 warning(msg.constData()); 961 974 } 962 if(!propDef.notify.isEmpty()) 975 if (propDef.constant && !propDef.write.isNull()) { 976 QByteArray msg; 977 msg += "Property declaration "; 978 msg += propDef.name; 979 msg += " is both WRITEable and CONSTANT. CONSTANT will be ignored."; 980 propDef.constant = false; 981 warning(msg.constData()); 982 } 983 if (propDef.constant && !propDef.notify.isNull()) { 984 QByteArray msg; 985 msg += "Property declaration "; 986 msg += propDef.name; 987 msg += " is both NOTIFYable and CONSTANT. CONSTANT will be ignored."; 988 propDef.constant = false; 989 warning(msg.constData()); 990 } 991 992 if(!propDef.notify.isEmpty()) 963 993 def->notifyableProperties++; 964 994 -
trunk/src/tools/moc/moc.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 59 59 60 60 inline Type() : isVolatile(false), isScoped(false), firstToken(NOTOKEN), referenceType(NoReference) {} 61 inline explicit Type(const QByteArray &_name) : name(_name), isVolatile(false), firstToken(NOTOKEN), referenceType(NoReference) {}61 inline explicit Type(const QByteArray &_name) : name(_name), isVolatile(false), firstToken(NOTOKEN), referenceType(NoReference) {} 62 62 QByteArray name; 63 63 uint isVolatile : 1; … … 116 116 struct PropertyDef 117 117 { 118 PropertyDef():notifyId(-1), gspec(ValueSpec){}118 PropertyDef():notifyId(-1), gspec(ValueSpec){} 119 119 QByteArray name, type, read, write, reset, designable, scriptable, editable, stored, user, notify; 120 120 int notifyId; 121 122 121 123 enum Specification { ValueSpec, ReferenceSpec, PointerSpec }; 122 124 Specification gspec; … … 138 140 struct ClassDef { 139 141 ClassDef(): 140 hasQObject(false), hasQGadget(false), notifyableProperties(0) {}142 hasQObject(false), hasQGadget(false), notifyableProperties(0){} 141 143 QByteArray classname; 142 144 QByteArray qualified; … … 178 180 public: 179 181 Moc() 180 : noInclude(false), generatedCode(false) 182 : noInclude(false), generatedCode(false) 181 183 {} 182 184 … … 185 187 bool noInclude; 186 188 bool generatedCode; 189 187 190 QByteArray includePath; 188 191 QList<QByteArray> includeFiles; -
trunk/src/tools/moc/mwerks_mac.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/mwerks_mac.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/outputrevision.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 44 44 45 45 // if the output revision changes, you MUST change it in qobjectdefs.h too 46 enum { mocOutputRevision = 6 1}; // moc format output revision46 enum { mocOutputRevision = 6 }; // moc format output revision 47 47 48 48 #endif // OUTPUTREVISION_H -
trunk/src/tools/moc/parser.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/parser.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/ppkeywords.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/preprocessor.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 808 808 QByteArray frameworkCandidate = include.left(slashPos); 809 809 frameworkCandidate.append(".framework/Headers/"); 810 fi.setFile(QString::fromLocal8Bit(p.path + "/"+ frameworkCandidate), QString::fromLocal8Bit(include.mid(slashPos + 1)));810 fi.setFile(QString::fromLocal8Bit(p.path + + frameworkCandidate), QString::fromLocal8Bit(include.mid(slashPos + 1))); 811 811 } else { 812 812 fi.setFile(QString::fromLocal8Bit(p.path), QString::fromLocal8Bit(include)); -
trunk/src/tools/moc/preprocessor.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/symbols.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/token.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/token.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/util/generate.sh
r2 r561 1 1 #!/bin/sh 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 2 43 qmake 3 44 make -
trunk/src/tools/moc/util/generate_keywords.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/util/licenseheader.txt
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** -
trunk/src/tools/moc/utils.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 **
Note:
See TracChangeset
for help on using the changeset viewer.