StyleDiagnostic.h header
#include <ew/app/StyleDiagnostic.h>
Namespace ew::app
StyleDiagnostic struct
struct ew::app::StyleDiagnostic
One writing issue found by the style engine: a flagged span of the analyzed text, the category of issue, a human-readable explanation, and an optional concise replacement. Offsets are UTF-16 code-unit indices into the text that was analyzed, matching QString's native indexing.
Members
qsizetype ew::app::StyleDiagnostic::offset = 0
Code-unit offset of the flagged span within the analyzed text.
qsizetype ew::app::StyleDiagnostic::length = 0
Length of the flagged span in code units.
StyleCategory ew::app::StyleDiagnostic::category =
The kind of issue, used to group and colour the diagnostic.
QString ew::app::StyleDiagnostic::message
Human-readable explanation of the issue.
QString ew::app::StyleDiagnostic::suggestion
A more concise replacement for the flagged span, or empty if the rule offers none.
bool operator==(const StyleDiagnostic &, const StyleDiagnostic &)=default
Diagnostics compare equal when every field matches.