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, AtBottom, QComboViewData::autoresize, QComboViewData::completeAt, QComboViewData::completeNow, QComboViewData::completionTimer, QComboViewData::current, d, QComboViewData::discardNextMousePress, QComboViewData::ed, QComboViewData::maxCount, QComboViewData::p, QComboViewData::poppedUp, QComboView(), setSizeLimit(), setUpLineEdit(), setUpListView(), QComboViewData::shortClick, and QComboViewData::useCompletion. Referenced by QComboView(). |
|
Destroys the combobox. Definition at line 175 of file qcomboview.cpp. References d. |
Member Function Documentation
|
|
|
Referenced by internalActivate(), keyPressEvent(), returnPressed(), setCurrentActiveItem(), and wheelEvent(). |
|
|
|
|
|
Definition at line 1478 of file qcomboview.cpp. References checkState(). Referenced by checkState(), 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 completionIndex(), and listView(). Referenced by completionIndex(), eventFilter(), and keyPressEvent(). |
|
Definition at line 840 of file qcomboview.cpp. References QComboViewData::autoresize, and d. Referenced by clear(), setCurrentActiveItem(), setCurrentItem(), setListView(), and setUpListView(). |
|
|
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, focusGranted(), and focusInEvent(). Referenced by eventFilter(), and focusInEvent(). |
|
Referenced by focusOutEvent(). |
|
reimp Definition at line 625 of file qcomboview.cpp. References QComboViewData::completeAt, QComboViewData::completeNow, d, focusLost(), and focusOutEvent(). Referenced by eventFilter(), and focusOutEvent(). |
|
|
|
Referenced by internalHighlight(). |
|
Referenced by returnPressed(). |
|
Definition at line 306 of file qcomboview.cpp. References activated(), QComboViewData::current, d, QComboViewData::ed, internalActivate(), popDownListView(), QComboViewData::poppedUp, and QComboViewData::updateLinedGeometry(). Referenced by internalActivate(), 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(), internalHighlight(), and QComboViewData::updateLinedGeometry(). Referenced by internalHighlight(), 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, keyPressEvent(), listView(), popup(), and setCurrentItem(). Referenced by eventFilter(), and keyPressEvent(). |
|
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 ClassViewPart::addFile(), completionIndex(), keyPressEvent(), mousePressEvent(), ClassBrowserPart::refresh(), ViewCombosOp::refreshClasses(), ClassBrowserPart::refreshClasses(), ViewCombosOp::refreshFunctions(), ClassBrowserPart::refreshMethods(), ViewCombosOp::refreshNamespaces(), ClassViewPart::removeFile(), returnPressed(), setCurrentText(), ClassViewPart::syncCombos(), ClassViewPart::updateClassesForAdd(), and ClassViewPart::updateFunctionsForAdd(). |
|
reimp Definition at line 516 of file qcomboview.cpp. References mouseDoubleClickEvent(), and mousePressEvent(). Referenced by mouseDoubleClickEvent(). |
|
reimp Definition at line 502 of file qcomboview.cpp. References mouseMoveEvent(). Referenced by mouseMoveEvent(). |
|
reimp Definition at line 467 of file qcomboview.cpp. References QComboViewData::arrowDown, QComboViewData::arrowPressed, childCount(), d, QComboViewData::discardNextMousePress, editable(), internalClickTimeout(), listView(), mousePressEvent(), popup(), and QComboViewData::shortClick. Referenced by mouseDoubleClickEvent(), and mousePressEvent(). |
|
reimp Definition at line 509 of file qcomboview.cpp. References mouseReleaseEvent(). Referenced by mouseReleaseEvent(). |
|
reimp Definition at line 412 of file qcomboview.cpp. References QComboViewData::arrowDown, QComboViewData::current, d, QComboViewData::ed, QComboViewData::listView(), paintEvent(), and QPainter::translate(). Referenced by paintEvent(). |
|
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(), resizeEvent(), and QComboViewData::updateLinedGeometry(). Referenced by resizeEvent(). |
|
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, setAutoCompletion(), and QComboViewData::useCompletion. Referenced by setAutoCompletion(). |
|
Definition at line 258 of file qcomboview.cpp. References QComboViewData::autoresize, d, and setAutoResize(). Referenced by setAutoResize(). |
|
Definition at line 1483 of file qcomboview.cpp. References activated(), QComboViewData::completeAt, QComboViewData::current, currentChanged(), d, QComboViewData::ed, internalActivate(), internalHighlight(), QComboViewData::listView(), setCurrentActiveItem(), and QComboViewData::updateLinedGeometry(). Referenced by ViewCombosOp::refreshNamespaces(), ClassViewPart::removeFile(), ClassViewPart::removeNamespace(), setCurrentActiveItem(), and ClassViewPart::syncCombos(). |
|
Definition at line 218 of file qcomboview.cpp. References QComboViewData::completeAt, QComboViewData::current, currentChanged(), d, QComboViewData::ed, internalHighlight(), QComboViewData::listView(), setCurrentItem(), and QComboViewData::updateLinedGeometry(). Referenced by keyPressEvent(), returnPressed(), setCurrentItem(), setCurrentText(), ClassViewPart::syncCombos(), and wheelEvent(). |
|
|
Definition at line 180 of file qcomboview.cpp. References d, QComboViewData::duplicatesEnabled, and setDuplicatesEnabled(). Referenced by KListViewAction::KListViewAction(), and setDuplicatesEnabled(). |
|
Definition at line 1356 of file qcomboview.cpp. References currentItem(), currentText(), d, QComboViewData::ed, editable(), setEditable(), setEditText(), setUpLineEdit(), and setUpListView(). Referenced by setEditable(). |
|
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, setEditText(), and QComboViewData::updateLinedGeometry(). Referenced by setEditable(), and setEditText(). |
|
reimp Definition at line 1160 of file qcomboview.cpp. References setEnabled(). Referenced by setEnabled(). |
|
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(), setFont(), and QComboViewData::sizeHint. Referenced by setFont(). |
|
Definition at line 1076 of file qcomboview.cpp. References d, QComboViewData::p, and setInsertionPolicy(). Referenced by KListViewAction::KListViewAction(), and setInsertionPolicy(). |
|
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(), setLineEdit(), setUpListView(), textChanged(), and QComboViewData::updateLinedGeometry(). Referenced by setLineEdit(), 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(), QComboViewData::setListView(), and setListView(). Referenced by 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, QComboViewData::listView(), and setPalette(). Referenced by setPalette(). |
|
Definition at line 1052 of file qcomboview.cpp. References d, setSizeLimit(), and QComboViewData::sizeLimit. Referenced by QComboView(), and setSizeLimit(). |
|
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, QComboViewData::ed, and setValidator(). Referenced by setValidator(). |
|
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, styleChange(), and QComboViewData::updateLinedGeometry(). Referenced by styleChange(). |
|
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, setCurrentItem(), and wheelEvent(). Referenced by wheelEvent(). |
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 ClassViewPart::focusClasses(), ClassViewPart::focusFunctions(), ClassViewPart::unfocusClasses(), and ClassViewPart::unfocusFunctions(). |
|
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