Changeset View
Changeset View
Standalone View
Standalone View
core/form.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | |||||
65 | { | 65 | { | ||
66 | return true; | 66 | return true; | ||
67 | } | 67 | } | ||
68 | 68 | | |||
69 | void FormField::setVisible( bool ) | 69 | void FormField::setVisible( bool ) | ||
70 | { | 70 | { | ||
71 | } | 71 | } | ||
72 | 72 | | |||
73 | bool FormField::isPrintable() const | ||||
74 | { | ||||
75 | return true; | ||||
76 | } | ||||
77 | | ||||
78 | void FormField::setPrintable( bool ) | ||||
79 | { | ||||
80 | } | ||||
81 | | ||||
73 | Action* FormField::activationAction() const | 82 | Action* FormField::activationAction() const | ||
74 | { | 83 | { | ||
75 | Q_D( const FormField ); | 84 | Q_D( const FormField ); | ||
76 | return d->m_activateAction; | 85 | return d->m_activateAction; | ||
77 | } | 86 | } | ||
78 | 87 | | |||
79 | void FormField::setActivationAction( Action *action ) | 88 | void FormField::setActivationAction( Action *action ) | ||
80 | { | 89 | { | ||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 124 | public: | |||
124 | { | 133 | { | ||
125 | Q_Q( FormFieldButton ); | 134 | Q_Q( FormFieldButton ); | ||
126 | q->setState( QVariant( v ).toBool() ); | 135 | q->setState( QVariant( v ).toBool() ); | ||
127 | } | 136 | } | ||
128 | 137 | | |||
129 | QString value() const override | 138 | QString value() const override | ||
130 | { | 139 | { | ||
131 | Q_Q( const FormFieldButton ); | 140 | Q_Q( const FormFieldButton ); | ||
132 | return qVariantFromValue<bool>( q->state() ).toString(); | 141 | return QVariant::fromValue<bool>( q->state() ).toString(); | ||
133 | } | 142 | } | ||
134 | }; | 143 | }; | ||
135 | 144 | | |||
136 | 145 | | |||
137 | FormFieldButton::FormFieldButton() | 146 | FormFieldButton::FormFieldButton() | ||
138 | : FormField( *new FormFieldButtonPrivate() ) | 147 | : FormField( *new FormFieldButtonPrivate() ) | ||
139 | { | 148 | { | ||
140 | } | 149 | } | ||
141 | 150 | | |||
142 | FormFieldButton::~FormFieldButton() | 151 | FormFieldButton::~FormFieldButton() | ||
143 | { | 152 | { | ||
144 | } | 153 | } | ||
145 | 154 | | |||
146 | void FormFieldButton::setState( bool ) | 155 | void FormFieldButton::setState( bool ) | ||
147 | { | 156 | { | ||
148 | } | 157 | } | ||
149 | 158 | | |||
159 | void FormFieldButton::setIcon( Okular::FormField * ) | ||||
160 | { | ||||
161 | } | ||||
162 | | ||||
150 | 163 | | |||
151 | class Okular::FormFieldTextPrivate : public Okular::FormFieldPrivate | 164 | class Okular::FormFieldTextPrivate : public Okular::FormFieldPrivate | ||
152 | { | 165 | { | ||
153 | public: | 166 | public: | ||
154 | FormFieldTextPrivate() | 167 | FormFieldTextPrivate() | ||
155 | : FormFieldPrivate( FormField::FormText ) | 168 | : FormFieldPrivate( FormField::FormText ) | ||
156 | { | 169 | { | ||
157 | } | 170 | } | ||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 217 | { | |||
205 | return Qt::AlignVCenter | Qt::AlignLeft; | 218 | return Qt::AlignVCenter | Qt::AlignLeft; | ||
206 | } | 219 | } | ||
207 | 220 | | |||
208 | bool FormFieldText::canBeSpellChecked() const | 221 | bool FormFieldText::canBeSpellChecked() const | ||
209 | { | 222 | { | ||
210 | return false; | 223 | return false; | ||
211 | } | 224 | } | ||
212 | 225 | | |||
213 | | ||||
214 | class Okular::FormFieldChoicePrivate : public Okular::FormFieldPrivate | 226 | class Okular::FormFieldChoicePrivate : public Okular::FormFieldPrivate | ||
215 | { | 227 | { | ||
216 | public: | 228 | public: | ||
217 | FormFieldChoicePrivate() | 229 | FormFieldChoicePrivate() | ||
218 | : FormFieldPrivate( FormField::FormChoice ) | 230 | : FormFieldPrivate( FormField::FormChoice ) | ||
219 | { | 231 | { | ||
220 | } | 232 | } | ||
221 | 233 | | |||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |