KexiComboBoxPopup Class Reference
#include <kexicomboboxpopup.h>
Inheritance diagram for KexiComboBoxPopup:

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 = 8 |
Protected Slots | |
| void | slotTVItemAccepted (KexiTableItem *item, int row, int col) |
| void | slotDataReloadRequested () |
Protected Member Functions | |
| void | init () |
| void | setData (KexiTableViewColumn *column, KexiDB::Field *field) |
| The main function for setting data; data can be set either by passing column or field. | |
| void | setDataInternal (KexiTableViewData *data, bool owner=true) |
| used by setData() helper | |
Protected Attributes | |
| KexiComboBoxPopupPrivate * | d |
Friends | |
| class | KexiComboBoxTableEdit |
Constructor & Destructor Documentation
|
||||||||||||
|
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. |
|
||||||||||||
|
Alternative constructor supporting lookup fields and enum hints. Definition at line 109 of file kexicomboboxpopup.cpp. |
|
|
Definition at line 117 of file kexicomboboxpopup.cpp. References d. |
Member Function Documentation
|
|
Referenced by eventFilter(). |
|
||||||||||||
|
Definition at line 277 of file kexicomboboxpopup.cpp. References cancelled(), d, and hidden(). |
|
|
Referenced by eventFilter(). |
|
|
Definition at line 122 of file kexicomboboxpopup.cpp. References d, and slotTVItemAccepted(). Referenced by KexiComboBoxPopup(). |
|
|
Definition at line 266 of file kexicomboboxpopup.cpp. References d. |
|
||||||||||||
|
Definition at line 250 of file kexicomboboxpopup.cpp. References d. Referenced by updateSize(). |
|
||||||||||||
|
Referenced by slotTVItemAccepted(). |
|
||||||||||||
|
The main function for setting data; data can be set either by passing column or field. The second case is used for lookup Definition at line 142 of file kexicomboboxpopup.cpp. References KexiTableViewData::addColumn(), KexiTableViewData::append(), KexiTableViewData::createItem(), d, KexiDB::Field::enumHints(), KexiTableViewColumn::field(), kexiwarn, KexiDB::Field::name(), KexiDB::LookupFieldSchema::RowSource::Query, KexiTableViewColumn::relatedData(), setDataInternal(), slotDataReloadRequested(), KexiDB::LookupFieldSchema::RowSource::Table, KexiDB::Field::table(), KexiDB::Field::Text, and updateSize(). Referenced by KexiComboBoxPopup(). |
|
||||||||||||
|
used by setData() helper
Definition at line 218 of file kexicomboboxpopup.cpp. References d, slotDataReloadRequested(), and updateSize(). Referenced by setData(). |
|
|
Sets maximum number of rows for this popup. Definition at line 261 of file kexicomboboxpopup.cpp. References d. |
|
|
Definition at line 301 of file kexicomboboxpopup.cpp. References updateSize(). Referenced by setData(), and setDataInternal(). |
|
||||||||||||||||
|
Definition at line 271 of file kexicomboboxpopup.cpp. References rowAccepted(). Referenced by init(). |
|
|
Definition at line 245 of file kexicomboboxpopup.cpp. References d. |
|
|
Definition at line 228 of file kexicomboboxpopup.cpp. References d, kexidbg, resize(), size, and KexiTableEdit::totalSize(). Referenced by setData(), setDataInternal(), and slotDataReloadRequested(). |
Friends And Related Function Documentation
|
|
Definition at line 88 of file kexicomboboxpopup.h. |
Member Data Documentation
|
|
Definition at line 86 of file kexicomboboxpopup.h. Referenced by eventFilter(), init(), maxRows(), resize(), setData(), setDataInternal(), setMaxRows(), tableView(), updateSize(), and ~KexiComboBoxPopup(). |
|
|
Default maximum number of rows for KexiComboBoxPopup objects. Definition at line 99 of file kexicomboboxpopup.cpp. |
The documentation for this class was generated from the following files:
