tools/qdoc3/qscodemarker.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
child 33 3e2da88830cd
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   277         return sections;
   277         return sections;
   278 
   278 
   279     const ClassNode *classe = static_cast<const ClassNode *>(inner);
   279     const ClassNode *classe = static_cast<const ClassNode *>(inner);
   280 
   280 
   281     if ( style == Summary ) {
   281     if ( style == Summary ) {
   282 	FastSection enums(classe, "Enums", "enum", "enums");
   282 	FastSection enums(classe, "Enums", "", "enum", "enums");
   283 	FastSection functions(classe, "Functions", "function", "functions");
   283 	FastSection functions(classe, "Functions", "", "function", "functions");
   284 	FastSection readOnlyProperties(classe, "Read-Only Properties", "property", "properties");
   284 	FastSection readOnlyProperties(classe, "", "Read-Only Properties", "property", "properties");
   285 	FastSection signalz(classe, "Signals", "signal", "signals");
   285 	FastSection signalz(classe, "Signals", "", "signal", "signals");
   286 	FastSection writableProperties(classe, "Writable Properties", "property", "properties");
   286 	FastSection writableProperties(classe, "", "Writable Properties", "property", "properties");
   287 
   287 
   288 	QStack<const ClassNode *> stack;
   288 	QStack<const ClassNode *> stack;
   289 	stack.push( classe );
   289 	stack.push( classe );
   290 
   290 
   291 	while ( !stack.isEmpty() ) {
   291 	while ( !stack.isEmpty() ) {
   326 	append( sections, writableProperties );
   326 	append( sections, writableProperties );
   327 	append( sections, readOnlyProperties );
   327 	append( sections, readOnlyProperties );
   328 	append( sections, functions );
   328 	append( sections, functions );
   329 	append( sections, signalz );
   329 	append( sections, signalz );
   330     } else if ( style == Detailed ) {
   330     } else if ( style == Detailed ) {
   331 	FastSection enums( classe, "Enum Documentation" );
   331 	FastSection enums( classe, "Enum Documentation", "", "member", "members");
   332 	FastSection functionsAndSignals( classe, "Function and Signal Documentation" );
   332 	FastSection functionsAndSignals( classe, "Function and Signal Documentation", "", "member", "members");
   333 	FastSection properties( classe, "Property Documentation" );
   333 	FastSection properties( classe, "Property Documentation", "", "member", "members");
   334 
   334 
   335 	NodeList::ConstIterator c = classe->childNodes().begin();
   335 	NodeList::ConstIterator c = classe->childNodes().begin();
   336 	while ( c != classe->childNodes().end() ) {
   336 	while ( c != classe->childNodes().end() ) {
   337 	    if ( (*c)->access() == Node::Public ) {
   337 	    if ( (*c)->access() == Node::Public ) {
   338 		if ( (*c)->type() == Node::Enum ) {
   338 		if ( (*c)->type() == Node::Enum ) {
   347 	}
   347 	}
   348 	append( sections, enums );
   348 	append( sections, enums );
   349 	append( sections, properties );
   349 	append( sections, properties );
   350 	append( sections, functionsAndSignals );
   350 	append( sections, functionsAndSignals );
   351     } else { // ( style == SeparateList )
   351     } else { // ( style == SeparateList )
   352 	FastSection all( classe );
   352 	FastSection all(classe, "", "", "member", "members");
   353 
   353 
   354 	QStack<const ClassNode *> stack;
   354 	QStack<const ClassNode *> stack;
   355 	stack.push( classe );
   355 	stack.push( classe );
   356 
   356 
   357 	while ( !stack.isEmpty() ) {
   357 	while ( !stack.isEmpty() ) {