FormatDescription Class
(TextEditor::FormatDescription)Public Types
| enum | ShowControls { ShowForegroundControl, ShowBackgroundControl, ShowFontControls, ShowUnderlineControl, ..., AllControlsExceptUnderline } |
Public Functions
| FormatDescription() = default | |
| FormatDescription(TextStyle id, const QString &displayName, const QString &tooltipText, ShowControls showControls = AllControls) | |
| FormatDescription(TextStyle id, const QString &displayName, const QString &tooltipText, const QColor &foreground, ShowControls showControls = AllControls) | |
| FormatDescription(TextStyle id, const QString &displayName, const QString &tooltipText, const Format &format, ShowControls showControls = AllControls) | |
| FormatDescription(TextStyle id, const QString &displayName, const QString &tooltipText, const QColor &underlineColor, const QTextCharFormat::UnderlineStyle underlineStyle, ShowControls showControls = AllControls) | |
| QString | displayName() const |
| const Format & | format() const |
| Format & | format() |
| TextStyle | id() const |
| bool | showControl(ShowControls showControl) const |
| QString | tooltipText() const |
Static Public Members
| QColor | defaultBackground(TextStyle id) |
| QColor | defaultForeground(TextStyle id) |
Member Function Documentation
[default] FormatDescription::FormatDescription()
Default constructs an instance of FormatDescription.
FormatDescription::FormatDescription(TextStyle id, const QString &displayName, const QString &tooltipText, ShowControls showControls = AllControls)
Default constructs an instance of FormatDescription.
FormatDescription::FormatDescription(TextStyle id, const QString &displayName, const QString &tooltipText, const QColor &foreground, ShowControls showControls = AllControls)
Default constructs an instance of FormatDescription.
FormatDescription::FormatDescription(TextStyle id, const QString &displayName, const QString &tooltipText, const Format &format, ShowControls showControls = AllControls)
Default constructs an instance of FormatDescription.
FormatDescription::FormatDescription(TextStyle id, const QString &displayName, const QString &tooltipText, const QColor &underlineColor, const QTextCharFormat::UnderlineStyle underlineStyle, ShowControls showControls = AllControls)
Default constructs an instance of FormatDescription.