MD::Link Class

class MD::Link

Link. More...

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

Public Types

Public Functions

Link()
MD::Link::ImageSharedPointer img() const
void setImg(MD::Link::ImageSharedPointer i)

Reimplemented Public Functions

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

Detailed Description

Link in Markdown. Doesn't matter what kind of link it is - autolink, shortcut link, GitHub flavored Markdown autolinks, all links will be stored in the document with this item.

Member Type Documentation

[alias] Link::ImageSharedPointer

Type of a smart pointer to image.

Member Function Documentation

Default constructor.

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

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

Clone this link.

doc Parent of new item.

MD::Link::ImageSharedPointer Link::img() const

Returns image of the link.

See also setImg().

void Link::setImg(MD::Link::ImageSharedPointer i)

Set image of the link.

i New value.

See also img().

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

Reimplements: Item::type() const.

Returns type of the item.