kexi
KexiComboBoxPopup Class Reference
#include <kexicomboboxpopup.h>
Detailed Description
Internal class for displaying popup table view.
Definition at line 35 of file kexicomboboxpopup.h.
Public Slots | |
virtual void | resize (int w, int h) |
void | updateSize (int minWidth=0) |
Signals | |
void | rowAccepted (KexiTableItem *item, int row) |
void | cancelled () |
void | hidden () |
Public Member Functions | |
KexiComboBoxPopup (QWidget *parent, KexiTableViewColumn &column) | |
KexiComboBoxPopup (QWidget *parent, KexiDB::Field &field) | |
virtual | ~KexiComboBoxPopup () |
KexiTableView * | tableView () |
void | setMaxRows (int r) |
int | maxRows () const |
virtual bool | eventFilter (QObject *o, QEvent *e) |
Static Public Attributes | |
static const int | defaultMaxRows |
Protected Slots | |
void | slotTVItemAccepted (KexiTableItem *item, int row, int col) |
void | slotDataReloadRequested () |
Protected Member Functions | |
void | init () |
void | setData (KexiTableViewColumn *column, KexiDB::Field *field) |
void | setDataInternal (KexiTableViewData *data, bool owner=true) |
Protected Attributes | |
KexiComboBoxPopupPrivate * | d |
Friends | |
class | KexiComboBoxTableEdit |
Constructor & Destructor Documentation
KexiComboBoxPopup::KexiComboBoxPopup | ( | QWidget * | parent, | |
KexiTableViewColumn & | column | |||
) |
Constructor for creating a popup using definition from column. If the column is lookup column, it's definition is used to display one or more column within the popup. Otherwise column.field() is used to display single-column data.
Definition at line 101 of file kexicomboboxpopup.cpp.
KexiComboBoxPopup::KexiComboBoxPopup | ( | QWidget * | parent, | |
KexiDB::Field & | field | |||
) |
Alternative constructor supporting lookup fields and enum hints.
Definition at line 109 of file kexicomboboxpopup.cpp.
Member Function Documentation
void KexiComboBoxPopup::setMaxRows | ( | int | r | ) |
Sets maximum number of rows for this popup.
Definition at line 261 of file kexicomboboxpopup.cpp.
int KexiComboBoxPopup::maxRows | ( | ) | const |
- Returns:
- maximum number of rows for this popup.
Definition at line 266 of file kexicomboboxpopup.cpp.
void KexiComboBoxPopup::setData | ( | KexiTableViewColumn * | column, | |
KexiDB::Field * | field | |||
) | [protected] |
The main function for setting data; data can be set either by passing column or field.
The second case is used for lookup
owner
- Todo:
- support more RowSourceType's, not only table and query
- Todo:
- errmsg
- Todo:
- errmsg
- Todo:
- errmsg
- Todo:
- THIS IS PRIMITIVE: we'd need to employ KexiDB::Reference here!
Definition at line 142 of file kexicomboboxpopup.cpp.
void KexiComboBoxPopup::setDataInternal | ( | KexiTableViewData * | data, | |
bool | owner = true | |||
) | [protected] |
Member Data Documentation
const int KexiComboBoxPopup::defaultMaxRows [static] |
Default maximum number of rows for KexiComboBoxPopup objects.
Definition at line 60 of file kexicomboboxpopup.h.
The documentation for this class was generated from the following files: