MD::Link Class
class MD::LinkLink. 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
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
Link::Link()
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.