MD::TableRow Class

class MD::TableRow

Table row. More...

Header: #include <md4qt/doc.h>
CMake: find_package(md4qt REQUIRED COMPONENTS md4qt)
target_link_libraries(mytarget PRIVATE md4qt::md4qt)
Inherits: MD::Item

Public Types

Public Functions

TableRow()
void appendCell(MD::TableRow::TableCellSharedPointer c)
const MD::TableRow::Cells &cells() const
bool isEmpty() const

Reimplemented Public Functions

virtual QSharedPointer<MD::Item> clone(MD::Document *doc = nullptr) const override
virtual MD::ItemType type() const override

Detailed Description

Row of table cells in GitHub flavored Markdown tables.

See also MD::TableCell and MD::Table.

Member Type Documentation

[alias] TableRow::Cells

Type of a list of table cells.

[alias] TableRow::TableCellSharedPointer

Type of a smart pointer to table cell.

Member Function Documentation

[constexpr noexcept] TableRow::TableRow()

Default constructor.

void TableRow::appendCell(MD::TableRow::TableCellSharedPointer c)

Append cell.

c New value.

const MD::TableRow::Cells &TableRow::cells() const

Returns list of cells.

[override virtual] QSharedPointer<MD::Item> TableRow::clone(MD::Document *doc = nullptr) const

Reimplements: Item::clone(MD::Document *doc) const.

Clone this table row.

doc Parent of new item.

bool TableRow::isEmpty() const

Returns whether this row empty?

[override virtual] MD::ItemType TableRow::type() const

Reimplements: Item::type() const.

Returns type of the item.