#include <kexifieldcombobox.h>
Inherits KComboBox.
Signals | |
| void | selected () |
Public Member Functions | |
| KexiFieldComboBox (TQWidget *parent, const char *name=0) | |
| int | indexOfField () const |
Protected Slots | |
| void | slotActivated (int) |
| void | slotReturnPressed (const TQString &text) |
Protected Member Functions | |
| virtual void | focusOutEvent (TQFocusEvent *e) |
Protected Attributes | |
| Private * | d |
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.
Constructor & Destructor Documentation
◆ KexiFieldComboBox()
| KexiFieldComboBox::KexiFieldComboBox | ( | TQWidget * | parent, |
| const char * | name = 0 |
||
| ) |
Definition at line 73 of file kexifieldcombobox.cpp.
◆ ~KexiFieldComboBox()
|
virtual |
Definition at line 87 of file kexifieldcombobox.cpp.
Member Function Documentation
◆ focusOutEvent()
|
protectedvirtual |
Definition at line 242 of file kexifieldcombobox.cpp.
◆ indexOfField()
| int KexiFieldComboBox::indexOfField | ( | ) | const |
Sets table or query schema schema. The schema object will be owned by the KexiFieldComboBox object. / void setSchema(KexiDB::TableOrQuerySchema schema);
KexiDB::TableOrQuerySchema* schema() const { return m_schema; }
public slots:
!
- Returns
- global project that is used to retrieve schema informationm for this combo box. KexiProject* project() const;
! Sets global project that is used to retrieve schema informationm for this combo box. void setProject(KexiProject *prj);
void setTableOrQuery(const TQString& name, bool table); TQString tableOrQueryName() const; bool isTableAssigned() const; void setFieldOrExpression(const TQString& string); void setFieldOrExpression(int index); TQString fieldOrExpression() const; TQString fieldOrExpressionCaption() const;
/*!
- 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 203 of file kexifieldcombobox.cpp.
◆ slotActivated
|
protectedslot |
Definition at line 217 of file kexifieldcombobox.cpp.
◆ slotReturnPressed
|
protectedslot |
Definition at line 223 of file kexifieldcombobox.cpp.
Member Data Documentation
◆ d
|
protected |
Definition at line 80 of file kexifieldcombobox.h.
The documentation for this class was generated from the following files:
