kexi
KexiFieldComboBox Class Reference
#include <kexifieldcombobox.h>
Detailed Description
This widget provides a list of fields from a table or query within a combobox, so user can pick one of them.
Definition at line 34 of file kexifieldcombobox.h.
Public Slots | |
KexiProject * | project () const |
void | setProject (KexiProject *prj) |
void | setTableOrQuery (const QString &name, bool table) |
QString | tableOrQueryName () const |
bool | isTableAssigned () const |
void | setFieldOrExpression (const QString &string) |
void | setFieldOrExpression (int index) |
QString | fieldOrExpression () const |
QString | fieldOrExpressionCaption () const |
int | indexOfField () const |
Signals | |
void | selected () |
Public Member Functions | |
KexiFieldComboBox (QWidget *parent, const char *name=0) | |
virtual | ~KexiFieldComboBox () |
Protected Slots | |
void | slotActivated (int) |
void | slotReturnPressed (const QString &text) |
Protected Member Functions | |
virtual void | focusOutEvent (QFocusEvent *e) |
Protected Attributes | |
Private * | d |
Member Function Documentation
KexiProject * KexiFieldComboBox::project | ( | ) | const [slot] |
- Returns:
- global project that is used to retrieve schema informationm for this combo box.
Sets table or query schema schema. The schema object will be owned by the KexiFieldComboBox object.
Definition at line 104 of file kexifieldcombobox.cpp.
void KexiFieldComboBox::setProject | ( | KexiProject * | prj | ) | [slot] |
Sets global project that is used to retrieve schema informationm for this combo box.
Definition at line 96 of file kexifieldcombobox.cpp.
void KexiFieldComboBox::setFieldOrExpression | ( | const QString & | string | ) | [slot] |
Definition at line 154 of file kexifieldcombobox.cpp.
int KexiFieldComboBox::indexOfField | ( | ) | const [slot] |
- Returns:
- index of selected table or query field. -1 is returned if there is nothing selected or expression is selected of project is not assigned or table or query is not assigned.
Definition at line 207 of file kexifieldcombobox.cpp.
The documentation for this class was generated from the following files: