Changeset View
Changeset View
Standalone View
Standalone View
core/form.cpp
Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Line(s) | 265 | { | |||
---|---|---|---|---|---|
266 | return Qt::AlignVCenter | Qt::AlignLeft; | 266 | return Qt::AlignVCenter | Qt::AlignLeft; | ||
267 | } | 267 | } | ||
268 | 268 | | |||
269 | bool FormFieldChoice::canBeSpellChecked() const | 269 | bool FormFieldChoice::canBeSpellChecked() const | ||
270 | { | 270 | { | ||
271 | return false; | 271 | return false; | ||
272 | } | 272 | } | ||
273 | 273 | | |||
274 | class Okular::FormFieldSignaturePrivate : public Okular::FormFieldPrivate | ||||
275 | { | ||||
276 | public: | ||||
277 | FormFieldSignaturePrivate() | ||||
278 | : FormFieldPrivate( FormField::FormSignature ) | ||||
279 | { | ||||
280 | } | ||||
281 | | ||||
282 | Q_DECLARE_PUBLIC( FormFieldSignature ) | ||||
283 | | ||||
284 | void setValue( const QString& v ) override | ||||
aacid: What's this used for? | |||||
For other formfields it can be used to set their default states. But for signature field I have no idea. chinmoyr: For other formfields it can be used to set their default states. But for signature field I have… | |||||
285 | { | ||||
286 | Q_UNUSED( v ) | ||||
287 | } | ||||
288 | | ||||
289 | QString value() const override | ||||
290 | { | ||||
291 | return QString(); | ||||
292 | } | ||||
293 | }; | ||||
294 | | ||||
295 | FormFieldSignature::FormFieldSignature() | ||||
296 | : FormField( *new FormFieldSignaturePrivate() ) | ||||
297 | { | ||||
298 | } | ||||
299 | | ||||
300 | FormFieldSignature::~FormFieldSignature() | ||||
301 | { | ||||
302 | } |
What's this used for?