KDb
KDbLookupFieldSchema.cpp
70#define KDbLookupFieldSchemaPrivateArgs(o) std::tie(o.recordSource, o.boundColumn, o.visibleColumns, \
105 typesForNames.insert(QLatin1String("sql"), KDbLookupFieldSchemaRecordSource::Type::SQLStatement);
106 typesForNames.insert(QLatin1String("valuelist"), KDbLookupFieldSchemaRecordSource::Type::ValueList);
107 typesForNames.insert(QLatin1String("fieldlist"), KDbLookupFieldSchemaRecordSource::Type::KDbFieldList);
124KDbLookupFieldSchemaRecordSource::KDbLookupFieldSchemaRecordSource(const KDbLookupFieldSchemaRecordSource& other)
185bool KDbLookupFieldSchemaRecordSource::operator==(const KDbLookupFieldSchemaRecordSource &other) const
237 //! @todo Remove this case: it's for backward compatibility with Kexi's 1.1.2 table designer GUI
Record source information that can be specified for the lookup field schema.
Definition KDbLookupFieldSchema.h:50
void setName(const QString &name)
Definition KDbLookupFieldSchema.cpp:149
void setTypeByName(const QString &typeName)
Definition KDbLookupFieldSchema.cpp:161
void setValues(const QStringList &values)
Definition KDbLookupFieldSchema.cpp:171
QString typeName() const
Definition KDbLookupFieldSchema.cpp:155
KDbLookupFieldSchemaRecordSource & operator=(const KDbLookupFieldSchemaRecordSource &other)
Assigns other to this record source and returns a reference to this record source.
Definition KDbLookupFieldSchema.cpp:177
@ ValueList
a fixed list of values as lookup record source
@ KDbFieldList
a list of column names from a table/query will be displayed
@ SQLStatement
anonymous query as lookup record source
QStringList values() const
Definition KDbLookupFieldSchema.cpp:166
void setType(Type type)
Definition KDbLookupFieldSchema.cpp:139
bool operator==(const KDbLookupFieldSchemaRecordSource &other) const
Definition KDbLookupFieldSchema.cpp:185
Provides information about lookup field's setup.
Definition KDbLookupFieldSchema.h:124
void setColumnHeadersVisible(bool set)
Definition KDbLookupFieldSchema.cpp:718
@ ListBox
listbox widget should be displayed in forms for this lookup field
@ ComboBox
(the default) combobox widget should be displayed in forms for this lookup field
void setBoundColumn(int column)
Definition KDbLookupFieldSchema.cpp:680
void setColumnWidths(const QList< int > &widths)
Definition KDbLookupFieldSchema.cpp:708
void setLimitToList(bool set)
Definition KDbLookupFieldSchema.cpp:733
bool setProperties(const QMap< QByteArray, QVariant > &values)
Definition KDbLookupFieldSchema.cpp:616
QList< int > visibleColumns() const
Definition KDbLookupFieldSchema.cpp:685
QList< int > columnWidths() const
Definition KDbLookupFieldSchema.cpp:703
void saveToDom(QDomDocument *doc, QDomElement *parentEl)
Definition KDbLookupFieldSchema.cpp:479
KDbLookupFieldSchema & operator=(const KDbLookupFieldSchema &other)
Assigns other to this lookup schema and returns a reference to this lookup schema.
Definition KDbLookupFieldSchema.cpp:748
int visibleColumn(int index) const
Definition KDbLookupFieldSchema.cpp:695
void setVisibleColumns(const QList< int > &list)
Definition KDbLookupFieldSchema.cpp:690
static KDbLookupFieldSchema * loadFromDom(const QDomElement &lookupEl)
Definition KDbLookupFieldSchema.cpp:346
void setMaxVisibleRecords(int count)
Definition KDbLookupFieldSchema.cpp:292
void getProperties(QMap< QByteArray, QVariant > *values) const
Definition KDbLookupFieldSchema.cpp:561
void setRecordSource(const KDbLookupFieldSchemaRecordSource &recordSource)
Definition KDbLookupFieldSchema.cpp:287
KDbLookupFieldSchemaRecordSource recordSource() const
Definition KDbLookupFieldSchema.cpp:282
bool operator==(const KDbLookupFieldSchema &other) const
Definition KDbLookupFieldSchema.cpp:756
void setDisplayWidget(DisplayWidget widget)
Definition KDbLookupFieldSchema.cpp:743
bool setProperty(const QByteArray &propertyName, const QVariant &value)
Definition KDbLookupFieldSchema.cpp:567
DisplayWidget displayWidget() const
Definition KDbLookupFieldSchema.cpp:738
bool columnHeadersVisible() const
Definition KDbLookupFieldSchema.cpp:713
int maxVisibleRecords() const
Definition KDbLookupFieldSchema.cpp:723
Type type(const QSqlDatabase &db)
KDB_EXPORT QDomElement saveNumberElementToDom(QDomDocument *doc, QDomElement *parentEl, const QString &elementName, int value)
Definition KDb.cpp:1169
KDB_EXPORT void getProperties(const KDbLookupFieldSchema *lookup, QMap< QByteArray, QVariant > *values)
Definition KDb.cpp:758
KDB_EXPORT QDomElement saveBooleanElementToDom(QDomDocument *doc, QDomElement *parentEl, const QString &elementName, bool value)
Definition KDb.cpp:1183
KDB_EXPORT QVariant loadPropertyValueFromDom(const QDomNode &node, bool *ok)
Definition KDb.cpp:1123
QString name(StandardAction id)
KGuiItem ok()
const QList< QKeySequence > & copy()
bool operator==(const StyleDelim &l, const StyleDelim &r)
QDebug & nospace()
QDebug & space()
QDomElement createElement(const QString &tagName)
QDomText createTextNode(const QString &value)
QString tagName() const const
QString text() const const
QDomNode appendChild(const QDomNode &newChild)
QDomNode firstChild() const const
bool isNull() const const
QDomNode nextSibling() const const
QDomElement toElement() const const
iterator insert(const Key &key, const T &value)
ConstIterator
void append(QList< T > &&value)
void clear()
const_iterator constBegin() const const
const_iterator constEnd() const const
qsizetype count() const const
bool isEmpty() const const
ConstIterator
void clear()
const_iterator constEnd() const const
iterator find(const Key &key)
T value(const Key &key, const T &defaultValue) const const
void clear()
QString number(double n, char format, int precision)
QByteArray toLatin1() const const
QString join(QChar separator) const const
None
Type type() const const
bool canConvert() const const
bool isNull() const const
bool toBool() const const
int toInt(bool *ok) const const
QList< QVariant > toList() const const
QString toString() const const
QStringList toStringList() const const
uint toUInt(bool *ok) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.