Struct qt_gui::q_text_block_format::MarkerType
source · pub struct MarkerType(/* private fields */);
Expand description
This enum describes the types of markers a list item can have. If a list item (a paragraph for which QTextBlock::textList() returns the list) has a marker, it is rendered instead of the normal bullet. In this way, checkable list items can be mixed with plain list items in the same list, overriding the type of bullet specified by the QTextListFormat::style() for the entire list.
C++ enum: QTextBlockFormat::MarkerType
.
This enum describes the types of markers a list item can have. If a list item (a paragraph for which QTextBlock::textList() returns the list) has a marker, it is rendered instead of the normal bullet. In this way, checkable list items can be mixed with plain list items in the same list, overriding the type of bullet specified by the QTextListFormat::style() for the entire list.
In the future, this may be extended to specify other types of paragraph decorations.
This enum was introduced or modified in Qt 5.14.
See also QTextListFormat::style().
Implementations§
source§impl MarkerType
impl MarkerType
sourcepub const NoMarker: MarkerType = _
pub const NoMarker: MarkerType = _
This is the default: the list item’s bullet will be shown. (C++ enum variant: NoMarker = 0
)
sourcepub const Unchecked: MarkerType = _
pub const Unchecked: MarkerType = _
Instead of the list item’s bullet, an unchecked checkbox will be shown. (C++ enum variant: Unchecked = 1
)
sourcepub const Checked: MarkerType = _
pub const Checked: MarkerType = _
Instead of the list item’s bullet, a checked checkbox will be shown. (C++ enum variant: Checked = 2
)
Trait Implementations§
source§impl Clone for MarkerType
impl Clone for MarkerType
source§fn clone(&self) -> MarkerType
fn clone(&self) -> MarkerType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MarkerType
impl Debug for MarkerType
source§impl From<MarkerType> for c_int
impl From<MarkerType> for c_int
source§fn from(value: MarkerType) -> Self
fn from(value: MarkerType) -> Self
source§impl From<i32> for MarkerType
impl From<i32> for MarkerType
source§impl PartialEq for MarkerType
impl PartialEq for MarkerType
source§fn eq(&self, other: &MarkerType) -> bool
fn eq(&self, other: &MarkerType) -> bool
self
and other
values to be equal, and is used
by ==
.