Changeset View
Changeset View
Standalone View
Standalone View
src/lib/format.h
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Line(s) | 52 | public: | |||
---|---|---|---|---|---|
133 | */ | 133 | */ | ||
134 | bool isStrikeThrough(const Theme &theme) const; | 134 | bool isStrikeThrough(const Theme &theme) const; | ||
135 | 135 | | |||
136 | /** | 136 | /** | ||
137 | * Returns whether characters with this format should be spell checked. | 137 | * Returns whether characters with this format should be spell checked. | ||
138 | */ | 138 | */ | ||
139 | bool spellCheck() const; | 139 | bool spellCheck() const; | ||
140 | 140 | | |||
141 | /** Returns @c true if the syntax definition file sets a value for the bold text | ||||
142 | * attribute and, therefore, overrides the theme and the default formatting | ||||
143 | * style. If the return is @p true, this value is obtained by isBold(). | ||||
144 | * @see isBold() | ||||
145 | * @since 5.62 | ||||
146 | */ | ||||
147 | bool hasBoldOverride() const; | ||||
148 | | ||||
149 | /** Returns @c true if the syntax definition file sets a value for the italic text | ||||
dhaumann: Better: If @p true is returned, ... | |||||
150 | * attribute and, therefore, overrides the theme and the default formatting style. | ||||
151 | * If the return is @p true, this value is obtained by isItalic(). | ||||
152 | * @see isItalic() | ||||
153 | * @since 5.62 | ||||
154 | */ | ||||
155 | bool hasItalicOverride() const; | ||||
Could you add an empty line after a function such that the next doxygen block starts after the newline? dhaumann: Could you add an empty line after a function such that the next doxygen block starts after the… | |||||
156 | | ||||
157 | /** Returns @c true if the syntax definition file sets a value for the underlined | ||||
158 | * text attribute and, therefore, overrides the theme and the default formatting | ||||
159 | * style. If the return is @p true, this value is obtained by isUnderline(). | ||||
160 | * @see isUnderline() | ||||
161 | * @since 5.62 | ||||
162 | */ | ||||
163 | bool hasUnderlineOverride() const; | ||||
164 | | ||||
165 | /** Returns @c true if the syntax definition file specifies a value for the | ||||
166 | * struck through text attribute. If the return is @p true, this value | ||||
167 | * is obtained by isStrikeThrough(). | ||||
168 | * @see isStrikeThrough() | ||||
169 | * @since 5.62 | ||||
170 | */ | ||||
171 | bool hasStrikeThroughOverride() const; | ||||
172 | | ||||
173 | /** Returns @c true if the syntax definition file sets a value for the foreground | ||||
174 | * text color attribute and, therefore, overrides the theme and the default formatting | ||||
175 | * style. If the return is @p true, this value is obtained by textColor(). | ||||
176 | * @see textColor(), hasTextColor() | ||||
177 | * @since 5.62 | ||||
178 | */ | ||||
179 | bool hasTextColorOverride() const; | ||||
180 | | ||||
181 | /** Returns @c true if the syntax definition file sets a value for the background | ||||
182 | * color attribute and, therefore, overrides the theme and the default formatting | ||||
183 | * style. If the return is @p true, this value is obtained by backgroundColor(). | ||||
184 | * @see backgroundColor(), hasBackgroundColor() | ||||
185 | * @since 5.62 | ||||
186 | */ | ||||
187 | bool hasBackgroundColorOverride() const; | ||||
188 | | ||||
189 | /** Returns @c true if the syntax definition file specifies a value for the | ||||
190 | * selected text color attribute. If the return is @p true, this value is | ||||
191 | * obtained by selectedTextColor(). | ||||
192 | * @see selectedTextColor() | ||||
193 | * @since 5.62 | ||||
194 | */ | ||||
195 | bool hasSelectedTextColorOverride() const; | ||||
196 | | ||||
197 | /** Returns @c true if the syntax definition file specifies a value for the | ||||
198 | * selected background color attribute. If the return is @p true, this | ||||
199 | * value is obtained by selectedBackgroundColor(). | ||||
200 | * @see selectedBackgroundColor() | ||||
201 | * @since 5.62 | ||||
202 | */ | ||||
203 | bool hasSelectedBackgroundColorOverride() const; | ||||
204 | | ||||
141 | private: | 205 | private: | ||
142 | friend class FormatPrivate; | 206 | friend class FormatPrivate; | ||
143 | QExplicitlySharedDataPointer<FormatPrivate> d; | 207 | QExplicitlySharedDataPointer<FormatPrivate> d; | ||
144 | }; | 208 | }; | ||
145 | } | 209 | } | ||
146 | 210 | | |||
147 | QT_BEGIN_NAMESPACE | 211 | QT_BEGIN_NAMESPACE | ||
148 | Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Format, Q_MOVABLE_TYPE); | 212 | Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Format, Q_MOVABLE_TYPE); | ||
149 | QT_END_NAMESPACE | 213 | QT_END_NAMESPACE | ||
150 | 214 | | |||
151 | #endif // KSYNTAXHIGHLIGHTING_FORMAT_H | 215 | #endif // KSYNTAXHIGHLIGHTING_FORMAT_H |
Better: If @p true is returned, ...