#include <QtxListBox.h>
QtxListBox::QtxListBox |
( |
QWidget * |
= 0 , |
|
|
const char * |
= 0 , |
|
|
Qt::WindowFlags |
= 0 |
|
) |
| |
QtxListBox::~QtxListBox |
( |
| ) |
|
|
virtual |
void QtxListBox::clearValidator |
( |
| ) |
|
|
virtualslot |
Removes validator of item editor
References editor().
void QtxListBox::createEditor |
( |
| ) |
|
|
private |
Creates item editor
References myEditor.
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().
bool QtxListBox::defaultEditAction |
( |
| ) |
const |
void QtxListBox::deleteItem |
( |
const int |
i = -1 | ) |
|
int QtxListBox::editedIndex |
( |
| ) |
const |
QListBoxItem * QtxListBox::editedItem |
( |
| ) |
const |
void QtxListBox::endEdition |
( |
const bool |
action | ) |
|
void QtxListBox::ensureItemVisible |
( |
const int |
idx | ) |
|
Ensures that the item is visible.
- Parameters
-
void QtxListBox::ensureItemVisible |
( |
const QListWidgetItem * |
| ) |
|
bool QtxListBox::isEditEnabled |
( |
| ) |
const |
- Returns
- true if editing is enabled
References myEditState.
bool QtxListBox::isModificationEnabled |
( |
| ) |
const |
void QtxListBox::itemEdited |
( |
int |
| ) |
|
|
signal |
void QtxListBox::itemEdited |
( |
QListWidgetItem * |
| ) |
|
|
signal |
void QtxListBox::itemMoved |
( |
int |
, |
|
|
int |
|
|
) |
| |
|
signal |
void QtxListBox::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
protectedvirtual |
void QtxListBox::mouseDoubleClickEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
void QtxListBox::moveItem |
( |
const int |
idx, |
|
|
const int |
step |
|
) |
| |
void QtxListBox::moveItemToBottom |
( |
const int |
idx | ) |
|
Moves item to bottom
- Parameters
-
References moveItem().
void QtxListBox::moveItemToTop |
( |
const int |
idx | ) |
|
Moves item to top
- Parameters
-
References moveItem().
void QtxListBox::onContentsMoving |
( |
int |
, |
|
|
int |
|
|
) |
| |
|
privateslot |
void QtxListBox::setContentsPos |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtualslot |
Scrolls the content so that the point is in the top-left corner.
- Parameters
-
References updateEditor().
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.
void QtxListBox::setEditEnabled |
( |
bool |
on | ) |
|
|
virtualslot |
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.
Changes validator of item editor
- Parameters
-
References editor().
void QtxListBox::startEdition |
( |
const int |
idx | ) |
|
void QtxListBox::startEdition |
( |
const QListWidgetItem * |
| ) |
|
void QtxListBox::updateEditor |
( |
| ) |
|
|
private |
- Returns
- validator of item editor
References editor().
void QtxListBox::viewportResizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
protectedvirtual |
bool QtxListBox::myEditDefault |
|
private |
int QtxListBox::myEditIndex |
|
private |
bool QtxListBox::myEditState |
|
private |
bool QtxListBox::myModifEnabled |
|
private |
The documentation for this class was generated from the following files: