QcLinkList Class
The links of a handbook section, one per target: a link to a target that is already there adds its note to that one. More...
| Header: | #include <common/handbook/QcLinkList.h> |
Public Types
Public Functions
| void | addUnique(QcLinkList::Link link) |
| bool | isEmpty() const |
| const QList<QcLinkList::Link> & | links() const |
| QList<QcLinkList::Link> | sorted() const |
Detailed Description
Member Type Documentation
[alias] QcLinkList::Link
A link to an entry.
Member Function Documentation
void QcLinkList::addUnique(QcLinkList::Link link)
Appends link unless one to the same target exists; that one gets the note added. Links without a target are always appended.
bool QcLinkList::isEmpty() const
Returns whether the list holds no link.
const QList<QcLinkList::Link> &QcLinkList::links() const
Returns the links in the order they were added.
QList<QcLinkList::Link> QcLinkList::sorted() const
Returns the links sorted by text (as compared by the search), then by target.