MD::Text Class
class MD::TextText item in Paragraph. More...
| Header: | #include <md4qt/doc.h> |
| CMake: | find_package(md4qt REQUIRED COMPONENTS md4qt)target_link_libraries(mytarget PRIVATE md4qt::md4qt) |
| Inherits: | MD::ItemWithOpts |
| Inherited By: |
Public Functions
Reimplemented Public Functions
| virtual QSharedPointer<MD::Item> | clone(MD::Document *doc = nullptr) const override |
| virtual MD::ItemType | type() const override |
Detailed Description
Regular text in paragraph. Information in these items in paragraph is a subject for custom plugins implementation.
Member Function Documentation
[constexpr noexcept] Text::Text()
Default constructor.
See also setText().
void Text::applyText(const MD::Text &t)
Apply other text to this.
t Value to apply.
[override virtual] QSharedPointer<MD::Item> Text::clone(MD::Document *doc = nullptr) const
Reimplements: Item::clone(MD::Document *doc) const.
Clone this text item.
doc Parent of new item.
void Text::setText(const QString &t)
Set text content.
t New value.
See also text().
const QString &Text::text() const
Returns text content.
See also setText().
[override virtual] MD::ItemType Text::type() const
Reimplements: Item::type() const.
Returns type of the item.