QComboView Class Reference
#include <qcomboview.h>
Inheritance diagram for QComboView:


Member Enumeration Documentation
|
Definition at line 75 of file qcomboview.h. |
Constructor & Destructor Documentation
|
Constructs a combobox with a maximum size and either Motif 2.0 or Windows look and feel. The input field can be edited if rw is TRUE, otherwise the user may only choose one of the items in the combobox. The parent and name arguments are passed on to the QWidget constructor. Definition at line 141 of file qcomboview.cpp. References QComboViewData::arrowDown, QComboViewData::autoresize, QComboViewData::completeAt, QComboViewData::completeNow, QComboViewData::completionTimer, QComboViewData::current, d, QComboViewData::discardNextMousePress, QComboViewData::ed, QComboViewData::maxCount, QComboViewData::p, QComboViewData::poppedUp, setSizeLimit(), setUpLineEdit(), setUpListView(), QComboViewData::shortClick, and QComboViewData::useCompletion. |
|
Destroys the combobox. Definition at line 175 of file qcomboview.cpp. |
Member Function Documentation
|
|
|
Referenced by internalActivate(), keyPressEvent(), returnPressed(), setCurrentActiveItem(), and wheelEvent(). |
|
|
|
|
|
Definition at line 1478 of file qcomboview.cpp. Referenced by setListView(), and setUpListView(). |
|
Definition at line 190 of file qcomboview.cpp. References d, and QComboViewData::listView(). Referenced by keyPressEvent(), mousePressEvent(), popup(), and sizeHint(). |
|
Removes all comboview items. Reimplemented in KComboView. Definition at line 200 of file qcomboview.cpp. References QComboViewData::current, currentChanged(), d, QComboViewData::ed, QComboViewData::listView(), and QComboViewData::updateLinedGeometry(). Referenced by KComboView::clear(), and setListView(). |
|
Clears the line edit without changing the combobox's contents. Does nothing if the combobox isn't editable. This is particularly useful when using a combobox as a line edit with history. For example you can connect the combobox's activated() signal to clearEdit() in order to present the user with a new, empty line as soon as Enter is pressed.
Definition at line 1303 of file qcomboview.cpp. References d, and QComboViewData::ed. |
|
This slot is equivalent to setValidator( 0 ). Definition at line 1200 of file qcomboview.cpp. References d, and QComboViewData::ed. |
|
Returns the index of the first item after startingAt of which prefix is a case-insensitive prefix. Returns -1 if no items start with prefix. Definition at line 1015 of file qcomboview.cpp. References listView(). Referenced by eventFilter(), and keyPressEvent(). |
|
Definition at line 840 of file qcomboview.cpp. References QComboViewData::autoresize, and d. Referenced by clear(), setCurrentActiveItem(), setCurrentItem(), setListView(), and setUpListView(). |
|
Definition at line 213 of file qcomboview.cpp. References QComboViewData::current, and d. Referenced by eventFilter(), Navigator::functionNavUnFocused(), keyPressEvent(), ClassBrowserPart::refreshClasses(), ClassBrowserPart::refreshMethods(), KComboView::removeItem(), returnPressed(), setCurrentText(), setEditable(), QComboViewData::updateLinedGeometry(), and wheelEvent(). |
|
Referenced by keyPressEvent(), setEditable(), setLineEdit(), and wheelEvent(). |
|
|
|
Referenced by mousePressEvent(), and setEditable(). |
|
|
Referenced by focusInEvent(). |
|
reimp Definition at line 613 of file qcomboview.cpp. References QComboViewData::completeAt, QComboViewData::completeNow, d, and focusGranted(). Referenced by eventFilter(). |
|
Referenced by focusOutEvent(). |
|
reimp Definition at line 625 of file qcomboview.cpp. References QComboViewData::completeAt, QComboViewData::completeNow, d, and focusLost(). Referenced by eventFilter(). |
|
|
|
Referenced by internalHighlight(). |
|
Referenced by returnPressed(). |
|
Definition at line 306 of file qcomboview.cpp. References activated(), QComboViewData::current, d, QComboViewData::ed, popDownListView(), QComboViewData::poppedUp, and QComboViewData::updateLinedGeometry(). Referenced by setCurrentActiveItem(), setListView(), and setUpListView(). |
|
Definition at line 362 of file qcomboview.cpp. References d, and QComboViewData::shortClick. Referenced by mousePressEvent(). |
|
Definition at line 340 of file qcomboview.cpp. References QComboViewData::current, d, QComboViewData::ed, highlighted(), and QComboViewData::updateLinedGeometry(). Referenced by setCurrentActiveItem(), setCurrentItem(), setListView(), and setUpListView(). |
|
reimp Definition at line 525 of file qcomboview.cpp. References activated(), childCount(), QComboViewData::completeAt, completionIndex(), QComboViewData::completionTimer, currentItem(), currentText(), d, QComboViewData::ed, listView(), popup(), and setCurrentItem(). Referenced by eventFilter(). |
|
Returns the line edit, or 0 if there is no line edit. Only editable listboxes have a line editor. Definition at line 1284 of file qcomboview.cpp. References d, and QComboViewData::ed. |
|
Returns the current list box, or 0 if there is no list box. (QComboView can use QPopupMenu instead of QListBox.) Provided to match setlistView().
Definition at line 1274 of file qcomboview.cpp. References d, and QComboViewData::listView(). Referenced by completionIndex(), keyPressEvent(), mousePressEvent(), ClassBrowserPart::refresh(), ViewCombosOp::refreshClasses(), ClassBrowserPart::refreshClasses(), ViewCombosOp::refreshFunctions(), ClassBrowserPart::refreshMethods(), ViewCombosOp::refreshNamespaces(), Navigator::refreshNavBars(), returnPressed(), and setCurrentText(). |
|
reimp Definition at line 516 of file qcomboview.cpp. References mousePressEvent(). |
|
reimp Definition at line 502 of file qcomboview.cpp. |
|
reimp Definition at line 467 of file qcomboview.cpp. References QComboViewData::arrowDown, QComboViewData::arrowPressed, childCount(), d, QComboViewData::discardNextMousePress, editable(), internalClickTimeout(), listView(), popup(), and QComboViewData::shortClick. Referenced by mouseDoubleClickEvent(). |
|
reimp Definition at line 509 of file qcomboview.cpp. |
|
reimp Definition at line 412 of file qcomboview.cpp. References QComboViewData::arrowDown, QComboViewData::current, d, QComboViewData::ed, QComboViewData::listView(), and QPainter::translate(). |
|
Definition at line 812 of file qcomboview.cpp. References QComboViewData::arrowDown, QComboViewData::current, d, QComboViewData::listView(), and QComboViewData::poppedUp. Referenced by eventFilter(), and internalActivate(). |
|
Pops up the combobox popup list. If the list is empty, no items appear. Definition at line 719 of file qcomboview.cpp. References childCount(), QComboViewData::current, d, listHeight(), QComboViewData::listView(), QComboViewData::mouseWasInsidePopup, QComboViewData::poppedUp, and QComboViewData::sizeLimit. Referenced by keyPressEvent(), and mousePressEvent(). |
|
Definition at line 831 of file qcomboview.cpp. |
|
reimp Definition at line 401 of file qcomboview.cpp. References d, QComboViewData::ed, QComboViewData::listView(), and QComboViewData::updateLinedGeometry(). |
|
Internal slot to keep the line editor up to date. Definition at line 1087 of file qcomboview.cpp. References activated(), AfterCurrent, AtBottom, AtCurrent, AtTop, BeforeCurrent, currentItem(), d, QComboViewData::duplicatesEnabled, QComboViewData::ed, insertionPolicy(), listView(), NoInsertion, s, and setCurrentItem(). Referenced by setLineEdit(), setListView(), and setUpListView(). |
|
Definition at line 1329 of file qcomboview.cpp. References QComboViewData::completeNow, d, and QComboViewData::useCompletion. |
|
Definition at line 258 of file qcomboview.cpp. References QComboViewData::autoresize, and d. |
|
Definition at line 1483 of file qcomboview.cpp. References activated(), QComboViewData::completeAt, QComboViewData::current, currentChanged(), d, QComboViewData::ed, internalActivate(), internalHighlight(), QComboViewData::listView(), and QComboViewData::updateLinedGeometry(). Referenced by ViewCombosOp::refreshNamespaces(), and Navigator::syncFunctionNav(). |
|
Definition at line 218 of file qcomboview.cpp. References QComboViewData::completeAt, QComboViewData::current, currentChanged(), d, QComboViewData::ed, internalHighlight(), QComboViewData::listView(), and QComboViewData::updateLinedGeometry(). Referenced by keyPressEvent(), KComboView::removeItem(), returnPressed(), setCurrentText(), and wheelEvent(). |
|
Definition at line 1466 of file qcomboview.cpp. References currentItem(), d, QComboViewData::ed, listView(), and setCurrentItem(). Referenced by KComboView::clear(), Navigator::functionNavFocused(), Navigator::functionNavUnFocused(), ViewCombosOp::refreshClasses(), ViewCombosOp::refreshFunctions(), KComboView::removeItem(), and Navigator::syncFunctionNav(). |
|
Definition at line 180 of file qcomboview.cpp. References d, and QComboViewData::duplicatesEnabled. Referenced by KListViewAction::KListViewAction(). |
|
Definition at line 1356 of file qcomboview.cpp. References currentItem(), currentText(), d, QComboViewData::ed, editable(), setEditText(), setUpLineEdit(), and setUpListView(). |
|
Sets the text in the line edit to newText without changing the combobox's contents. Does nothing if the combobox isn't editable. This is useful e.g. for providing a good starting point for the user's editing and entering the change in the combobox only when the user presses Enter.
Definition at line 1321 of file qcomboview.cpp. References d, QComboViewData::ed, and QComboViewData::updateLinedGeometry(). Referenced by setEditable(). |
|
reimp Definition at line 1160 of file qcomboview.cpp. |
|
Sets the font for both the combobox button and the combobox popup list to font. Definition at line 386 of file qcomboview.cpp. References QComboViewData::autoresize, d, QComboViewData::ed, QComboViewData::listView(), and QComboViewData::sizeHint. |
|
Definition at line 1076 of file qcomboview.cpp. References d, and QComboViewData::p. Referenced by KListViewAction::KListViewAction(). |
|
Sets the line edit to use edit instead of the current line edit. Definition at line 1421 of file qcomboview.cpp. References currentText(), d, QComboViewData::ed, returnPressed(), setUpListView(), textChanged(), and QComboViewData::updateLinedGeometry(). Referenced by KComboView::KComboView(), and setUpLineEdit(). |
|
Sets the combobox to use newListBox instead of the current list box or popup. As a side effect, it clears the combobox of its current contents.
Definition at line 1217 of file qcomboview.cpp. References checkState(), clear(), QComboViewData::current, currentChanged(), d, internalActivate(), internalHighlight(), QComboViewData::listView(), returnPressed(), and QComboViewData::setListView(). |
|
Sets the palette for both the combobox button and the combobox popup list to palette. Definition at line 372 of file qcomboview.cpp. References d, and QComboViewData::listView(). |
|
Definition at line 1052 of file qcomboview.cpp. References d, and QComboViewData::sizeLimit. Referenced by QComboView(). |
|
Definition at line 1411 of file qcomboview.cpp. References d, QComboViewData::ed, and setLineEdit(). Referenced by QComboView(), and setEditable(). |
|
Definition at line 1377 of file qcomboview.cpp. References checkState(), QComboViewData::current, currentChanged(), d, internalActivate(), internalHighlight(), QComboViewData::listView(), returnPressed(), and QComboViewData::setListView(). Referenced by QComboView(), setEditable(), and setLineEdit(). |
|
Applies the validator v to the combobox so that only text which is valid according to v is accepted. This function does nothing if the combobox is not editable.
Definition at line 1176 of file qcomboview.cpp. References d, and QComboViewData::ed. |
|
reimp This implementation caches the size hint to avoid resizing when the contents change dynamically. To invalidate the cached value call setFont(). Definition at line 275 of file qcomboview.cpp. References childCount(), d, and QComboViewData::sizeHint. |
|
|
|
reimp Definition at line 1343 of file qcomboview.cpp. References d, QComboViewData::ed, QComboViewData::sizeHint, and QComboViewData::updateLinedGeometry(). |
|
Referenced by setLineEdit(). |
|
reimp Definition at line 795 of file qcomboview.cpp. References size. |
|
Returns the validator which constrains editing for this combobox if there is one; otherwise returns 0.
Definition at line 1190 of file qcomboview.cpp. References d, and QComboViewData::ed. |
|
reimp Definition at line 637 of file qcomboview.cpp. References activated(), currentItem(), currentText(), d, QComboViewData::listView(), QComboViewData::poppedUp, and setCurrentItem(). |
Member Data Documentation
|
Property Documentation
|
Definition at line 46 of file qcomboview.h. |
|
Definition at line 42 of file qcomboview.h. |
|
Definition at line 40 of file qcomboview.h. Referenced by Navigator::functionNavFocused(). |
|
Definition at line 47 of file qcomboview.h. |
|
Definition at line 38 of file qcomboview.h. |
|
Definition at line 45 of file qcomboview.h. |
|
Definition at line 43 of file qcomboview.h. |
The documentation for this class was generated from the following files:
- lib/widgets/qcomboview.h
- lib/widgets/qcomboview.cpp