#include <QtxListBox.h>
◆ QtxListBox()
QtxListBox::QtxListBox |
( |
QWidget * |
= 0 , |
|
|
const char * |
= 0 , |
|
|
Qt::WindowFlags |
= 0 |
|
) |
| |
◆ ~QtxListBox()
QtxListBox::~QtxListBox |
( |
| ) |
|
|
virtual |
◆ clearValidator
void QtxListBox::clearValidator |
( |
| ) |
|
|
virtualslot |
Removes validator of item editor
References editor().
◆ createEditor()
void QtxListBox::createEditor |
( |
| ) |
|
|
private |
Creates item editor
References myEditor.
◆ createItem()
void QtxListBox::createItem |
( |
const int |
i = -1 | ) |
|
Inserts empty item
- Parameters
-
i | - position of item (if it is less than 0, then current position is used) |
References isEditEnabled(), and startEdition().
◆ defaultEditAction()
bool QtxListBox::defaultEditAction |
( |
| ) |
const |
◆ deleteItem()
void QtxListBox::deleteItem |
( |
const int |
i = -1 | ) |
|
◆ editedIndex()
int QtxListBox::editedIndex |
( |
| ) |
const |
◆ editedItem()
QListBoxItem * QtxListBox::editedItem |
( |
| ) |
const |
◆ editor()
◆ endEdition()
void QtxListBox::endEdition |
( |
const bool |
action | ) |
|
◆ ensureItemVisible() [1/2]
void QtxListBox::ensureItemVisible |
( |
const int |
idx | ) |
|
Ensures that the item is visible.
- Parameters
-
◆ ensureItemVisible() [2/2]
void QtxListBox::ensureItemVisible |
( |
const QListWidgetItem * |
| ) |
|
◆ eventFilter()
◆ isEditEnabled()
bool QtxListBox::isEditEnabled |
( |
| ) |
const |
- Returns
- true if editing is enabled
References myEditState.
◆ isModificationEnabled()
bool QtxListBox::isModificationEnabled |
( |
| ) |
const |
◆ itemEdited [1/2]
void QtxListBox::itemEdited |
( |
int |
| ) |
|
|
signal |
◆ itemEdited [2/2]
void QtxListBox::itemEdited |
( |
QListWidgetItem * |
| ) |
|
|
signal |
◆ itemMoved
void QtxListBox::itemMoved |
( |
int |
, |
|
|
int |
|
|
) |
| |
|
signal |
◆ keyPressEvent()
void QtxListBox::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
protectedvirtual |
◆ mouseDoubleClickEvent()
void QtxListBox::mouseDoubleClickEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
◆ moveItem()
void QtxListBox::moveItem |
( |
const int |
idx, |
|
|
const int |
step |
|
) |
| |
◆ moveItemToBottom()
void QtxListBox::moveItemToBottom |
( |
const int |
idx | ) |
|
Moves item to bottom
- Parameters
-
References moveItem().
◆ moveItemToTop()
void QtxListBox::moveItemToTop |
( |
const int |
idx | ) |
|
Moves item to top
- Parameters
-
References moveItem().
◆ onContentsMoving
void QtxListBox::onContentsMoving |
( |
int |
, |
|
|
int |
|
|
) |
| |
|
privateslot |
◆ setContentsPos
void QtxListBox::setContentsPos |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtualslot |
Scrolls the content so that the point is in the top-left corner.
- Parameters
-
References updateEditor().
◆ setDefaultEditAction
void QtxListBox::setDefaultEditAction |
( |
bool |
def | ) |
|
|
virtualslot |
Changes default edit action. Pressing of ENTER button always accepts new value of edited item. But other ways, such as focus out or edition of other item accepts new value of edited item only if "default edit action" is true
- Parameters
-
References myEditDefault.
◆ setEditEnabled
void QtxListBox::setEditEnabled |
( |
bool |
on | ) |
|
|
virtualslot |
◆ setModificationEnabled
void QtxListBox::setModificationEnabled |
( |
bool |
on | ) |
|
|
virtualslot |
Changes "modification enabled" state If it is true, then pressing of CTRL + { Up, Down, Home, End } allows move items in list
- Parameters
-
References myModifEnabled.
◆ setValidator
void QtxListBox::setValidator |
( |
const QValidator * |
v | ) |
|
|
virtualslot |
Changes validator of item editor
- Parameters
-
References editor().
◆ startEdition() [1/2]
void QtxListBox::startEdition |
( |
const int |
idx | ) |
|
◆ startEdition() [2/2]
void QtxListBox::startEdition |
( |
const QListWidgetItem * |
| ) |
|
◆ updateEditor()
void QtxListBox::updateEditor |
( |
| ) |
|
|
private |
◆ validator()
const QValidator * QtxListBox::validator |
( |
| ) |
const |
- Returns
- validator of item editor
References editor().
◆ viewportResizeEvent()
void QtxListBox::viewportResizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
protectedvirtual |
◆ myEditDefault
bool QtxListBox::myEditDefault |
|
private |
◆ myEditIndex
int QtxListBox::myEditIndex |
|
private |
◆ myEditor
◆ myEditState
bool QtxListBox::myEditState |
|
private |
◆ myModifEnabled
bool QtxListBox::myModifEnabled |
|
private |
The documentation for this class was generated from the following files: