Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/forms/widgets/kexidbtextedit.cpp
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Line(s) | 208 | { | |||
---|---|---|---|---|---|
209 | return textCursor().atEnd(); | 209 | return textCursor().atEnd(); | ||
210 | } | 210 | } | ||
211 | 211 | | |||
212 | void KexiDBTextEdit::clear() | 212 | void KexiDBTextEdit::clear() | ||
213 | { | 213 | { | ||
214 | document()->clear(); | 214 | document()->clear(); | ||
215 | } | 215 | } | ||
216 | 216 | | |||
217 | void KexiDBTextEdit::setColumnInfo(KDbQueryColumnInfo* cinfo) | 217 | void KexiDBTextEdit::setColumnInfo(KDbConnection *conn, KDbQueryColumnInfo* cinfo) | ||
218 | { | 218 | { | ||
219 | KexiFormDataItemInterface::setColumnInfo(cinfo); | 219 | KexiFormDataItemInterface::setColumnInfo(conn, cinfo); | ||
220 | if (!cinfo) { | 220 | if (!cinfo) { | ||
221 | m_length = 0; | 221 | m_length = 0; | ||
222 | return; | 222 | return; | ||
223 | } | 223 | } | ||
224 | 224 | | |||
225 | if (cinfo->field()->type() == KDbField::Text) { | 225 | if (cinfo->field()->type() == KDbField::Text) { | ||
226 | if (!designMode()) { | 226 | if (!designMode()) { | ||
227 | if (cinfo->field()->maxLength() > 0) { | 227 | if (cinfo->field()->maxLength() > 0) { | ||
▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines |