Changeset View
Changeset View
Standalone View
Standalone View
core/form.cpp
Show First 20 Lines • Show All 273 Lines • ▼ Show 20 Line(s) | 273 | { | |||
---|---|---|---|---|---|
274 | return Qt::AlignVCenter | Qt::AlignLeft; | 274 | return Qt::AlignVCenter | Qt::AlignLeft; | ||
275 | } | 275 | } | ||
276 | 276 | | |||
277 | bool FormFieldChoice::canBeSpellChecked() const | 277 | bool FormFieldChoice::canBeSpellChecked() const | ||
278 | { | 278 | { | ||
279 | return false; | 279 | return false; | ||
280 | } | 280 | } | ||
281 | 281 | | |||
282 | class Okular::FormFieldSignaturePrivate : public Okular::FormFieldPrivate | ||||
283 | { | ||||
284 | public: | ||||
285 | FormFieldSignaturePrivate() | ||||
286 | : FormFieldPrivate( FormField::FormSignature ) | ||||
287 | { | ||||
288 | } | ||||
289 | | ||||
290 | Q_DECLARE_PUBLIC( FormFieldSignature ) | ||||
291 | | ||||
292 | 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… | |||||
293 | { | ||||
294 | Q_UNUSED( v ) | ||||
295 | } | ||||
296 | | ||||
297 | QString value() const override | ||||
298 | { | ||||
299 | return QString(); | ||||
300 | } | ||||
301 | }; | ||||
302 | | ||||
303 | FormFieldSignature::FormFieldSignature() | ||||
304 | : FormField( *new FormFieldSignaturePrivate() ) | ||||
305 | { | ||||
306 | } | ||||
307 | | ||||
308 | FormFieldSignature::~FormFieldSignature() | ||||
309 | { | ||||
310 | } |
What's this used for?