QtCraft API C++ classes QML types Handbook

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

Link

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

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.

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.