Changeset 342:c887282e1590
- Timestamp:
- 05/13/10 10:11:04
(2 years ago)
- Author:
- maxter <spambox@d-coding.com>
- Tags:
qtd.0.5
- branch:
- default
- Message:
removed enum experiment leftover
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r341 |
r342 |
|
| 289 | 289 | void DGenerator::writeEnumAliases(QTextStream &s, const AbstractMetaEnum *d_enum) |
|---|
| 290 | 290 | { |
|---|
| 291 | | FlagsTypeEntry *flags = d_enum->typeEntry()->flags(); |
|---|
| 292 | | if (flags) |
|---|
| 293 | | s << INDENT << "alias " << d_enum->name() << " " << flags->targetLangName() << ";" << endl << endl; |
|---|
| 294 | | |
|---|
| 295 | 291 | const AbstractMetaEnumValueList &values = d_enum->values(); |
|---|
| 296 | 292 | for (int i=0; i<values.size(); ++i) { |
|---|
| … | … | |
| 488 | 484 | |
|---|
| 489 | 485 | static QString function_call_for_ownership(TypeSystem::Ownership owner) |
|---|
| 490 | | { |
|---|
| | 486 | { |
|---|
| 491 | 487 | if (owner == TypeSystem::CppOwnership) { |
|---|
| 492 | 488 | return "__setFlags(QtdObjectFlags.nativeOwnership, true)"; |
|---|
| … | … | |
| 2213 | 2209 | AbstractMetaFunctionList signal_funcs = signalFunctions(d_class, false); |
|---|
| 2214 | 2210 | writeSignalSignatures(s, d_class, signal_funcs); |
|---|
| 2215 | | |
|---|
| | 2211 | |
|---|
| 2216 | 2212 | foreach (AbstractMetaFunction *signal, signal_funcs) |
|---|
| 2217 | 2213 | { |
|---|
| … | … | |
| 2402 | 2398 | s << "}" << endl; // end of class scope |
|---|
| 2403 | 2399 | |
|---|
| 2404 | | /* ---------------- injected free code ----------------*/ |
|---|
| 2405 | | const ComplexTypeEntry *class_type = d_class->typeEntry(); |
|---|
| 2406 | | Q_ASSERT(class_type); |
|---|
| 2407 | | |
|---|
| 2408 | | CodeSnipList code_snips = class_type->codeSnips(); |
|---|
| 2409 | | foreach (const CodeSnip &snip, code_snips) { |
|---|
| 2410 | | if (!d_class->isInterface() && snip.language == TypeSystem::TargetLangFreeCode) { |
|---|
| 2411 | | s << endl; |
|---|
| 2412 | | snip.formattedCode(s, INDENT); |
|---|
| 2413 | | } |
|---|
| 2414 | | } |
|---|
| | 2400 | /* ---------------- injected free code ----------------*/ |
|---|
| | 2401 | const ComplexTypeEntry *class_type = d_class->typeEntry(); |
|---|
| | 2402 | Q_ASSERT(class_type); |
|---|
| | 2403 | |
|---|
| | 2404 | CodeSnipList code_snips = class_type->codeSnips(); |
|---|
| | 2405 | foreach (const CodeSnip &snip, code_snips) { |
|---|
| | 2406 | if (!d_class->isInterface() && snip.language == TypeSystem::TargetLangFreeCode) { |
|---|
| | 2407 | s << endl; |
|---|
| | 2408 | snip.formattedCode(s, INDENT); |
|---|
| | 2409 | } |
|---|
| | 2410 | } |
|---|
| 2415 | 2411 | /* --------------------------------------------------- */ |
|---|
| 2416 | 2412 | |
|---|
| … | … | |
| 2435 | 2431 | s << INDENT << "public this(void* native_id, QtdObjectFlags flags = QtdObjectFlags.nativeOwnership) {" << endl |
|---|
| 2436 | 2432 | << INDENT << " super(native_id, flags);" << endl << endl; |
|---|
| 2437 | | |
|---|
| | 2433 | |
|---|
| 2438 | 2434 | s << INDENT << "}" << endl << endl; |
|---|
| 2439 | 2435 | |
|---|
| … | … | |
| 2903 | 2899 | { |
|---|
| 2904 | 2900 | Indentation indent(INDENT); |
|---|
| 2905 | | |
|---|
| | 2901 | |
|---|
| 2906 | 2902 | if (d_class->name() != "QObject") |
|---|
| 2907 | 2903 | { |
|---|
| 2908 | 2904 | s << INDENT << "signalId = super.signalSignature(signalId, signature);" << endl |
|---|
| 2909 | 2905 | << INDENT << "if (signature)" << endl |
|---|
| 2910 | | << INDENT << " return signalId;" << endl; |
|---|
| 2911 | | } |
|---|
| 2912 | | |
|---|
| | 2906 | << INDENT << " return signalId;" << endl; |
|---|
| | 2907 | } |
|---|
| | 2908 | |
|---|
| 2913 | 2909 | s << INDENT << "if (signalId < __signalSignatures.length)" << endl |
|---|
| 2914 | 2910 | << INDENT << " signature = __signalSignatures[signalId].ptr;" << endl |
|---|
| r326 |
r342 |
|
| 5825 | 5825 | <modify-function signature="critical(QWidget*,QString,QString,int,int,int)" remove="all"/> <!--### Obsolete in 4.3--> |
|---|
| 5826 | 5826 | <modify-function signature="critical(QWidget*,QString,QString,QString,QString,QString,int,int)" remove="all"/> <!--### Obsolete in 4.3--> |
|---|
| 5827 | | <modify-function signature="information(QWidget*,QString,QString,int,int,int)" remove="all"/> <!--### Obsolete in 4.3--> |
|---|
| | 5827 | <!-- <modify-function signature="information(QWidget*,QString,QString,int,int,int)" remove="all"/> <!--### Obsolete in 4.3--> |
|---|
| 5828 | 5828 | <modify-function signature="information(QWidget*,QString,QString,QString,QString,QString,int,int)" remove="all"/> <!--### Obsolete in 4.3--> |
|---|
| | 5829 | <modify-function signature="information(QWidget*,const QString &,const QString &,int,int,int)" remove="all"/> |
|---|
| 5829 | 5830 | <modify-function signature="question(QWidget*, QString, QString, int, int, int)" remove="all"/> <!--### Obsolete in 4.3--> |
|---|
| 5830 | 5831 | <modify-function signature="question(QWidget*, QString, QString, QString, QString, QString, int, int)" remove="all"/> <!--### Obsolete in 4.3--> |
|---|