equal
deleted
inserted
replaced
650 given \a type and having the given \a parent and \a name. |
650 given \a type and having the given \a parent and \a name. |
651 */ |
651 */ |
652 InnerNode::InnerNode(Type type, InnerNode *parent, const QString& name) |
652 InnerNode::InnerNode(Type type, InnerNode *parent, const QString& name) |
653 : Node(type, parent, name) |
653 : Node(type, parent, name) |
654 { |
654 { |
655 if (type == Class) |
655 switch (type) { |
|
656 case Class: |
|
657 case Namespace: |
656 setPageType(ApiPage); |
658 setPageType(ApiPage); |
|
659 break; |
|
660 default: |
|
661 break; |
|
662 } |
657 } |
663 } |
658 |
664 |
659 /*! |
665 /*! |
660 Appends an \a include file to the list of include files. |
666 Appends an \a include file to the list of include files. |
661 */ |
667 */ |
843 \a type. The new leaf node becomes a child of \a parent. |
849 \a type. The new leaf node becomes a child of \a parent. |
844 */ |
850 */ |
845 LeafNode::LeafNode(Type type, InnerNode *parent, const QString& name) |
851 LeafNode::LeafNode(Type type, InnerNode *parent, const QString& name) |
846 : Node(type, parent, name) |
852 : Node(type, parent, name) |
847 { |
853 { |
|
854 switch (type) { |
|
855 case Enum: |
|
856 case Function: |
|
857 case Typedef: |
|
858 case Variable: |
|
859 case QmlProperty: |
|
860 case QmlSignal: |
|
861 case QmlMethod: |
|
862 setPageType(ApiPage); |
|
863 break; |
|
864 default: |
|
865 break; |
|
866 } |
848 } |
867 } |
849 |
868 |
850 /*! |
869 /*! |
851 \class NamespaceNode |
870 \class NamespaceNode |
852 */ |
871 */ |
1598 dt(type), |
1617 dt(type), |
1599 sto(Trool_Default), |
1618 sto(Trool_Default), |
1600 des(Trool_Default), |
1619 des(Trool_Default), |
1601 att(attached) |
1620 att(attached) |
1602 { |
1621 { |
1603 // nothing. |
1622 setPageType(ApiPage); |
1604 } |
1623 } |
1605 |
1624 |
1606 /*! |
1625 /*! |
1607 I don't know what this is. |
1626 I don't know what this is. |
1608 */ |
1627 */ |