#include <QtxTable.h>
Public Slots | |
virtual void | hide () |
virtual void | setHeaderEditable (Orientation, bool) |
Signals | |
void | headerEdited (QHeader *, int) |
void | headerEdited (Orientation, int) |
Public Member Functions | |
QtxTable (QWidget *=0, const char *=0) | |
QtxTable (int, int, QWidget *=0, const char *=0) | |
virtual | ~QtxTable () |
bool | headerEditable (Orientation) const |
bool | editHeader (Orientation, const int) |
void | endEditHeader (const bool=true) |
virtual bool | eventFilter (QObject *, QEvent *) |
Protected Member Functions | |
virtual void | resizeEvent (QResizeEvent *) |
virtual bool | beginHeaderEdit (Orientation, const int) |
virtual void | endHeaderEdit (const bool=true) |
bool | isHeaderEditing () const |
virtual QWidget * | createHeaderEditor (QHeader *, const int, const bool=true) |
virtual void | setHeaderContentFromEditor (QHeader *, const int, QWidget *) |
QHeader * | header (Orientation o) const |
Private Slots | |
void | onScrollBarMoved (int) |
void | onHeaderSizeChange (int, int, int) |
Private Member Functions | |
void | updateHeaderEditor () |
void | beginHeaderEdit (Orientation, const QPoint &) |
QRect | headerSectionRect (QHeader *, const int) const |
Private Attributes | |
QWidget * | myHeaderEditor |
QHeader * | myEditedHeader |
int | myEditedSection |
QMap< int, bool > | myHeaderEditable |
Constructor
References onHeaderSizeChange(), and onScrollBarMoved().
Constructor
References onHeaderSizeChange(), and onScrollBarMoved().
|
virtual |
Destructor
|
protectedvirtual |
Starts edition of header
o | - header orientation |
sec | - column/row |
References createHeaderEditor(), endHeaderEdit(), header(), headerEditable(), headerSectionRect(), Horizontal, myEditedHeader, myEditedSection, myHeaderEditor, and updateHeaderEditor().
|
private |
Starts edition of header
o | - header orientation |
p | - point |
References beginHeaderEdit(), header(), and Horizontal.
|
protectedvirtual |
Creates and
hdr | - header |
sec | - column/row |
init | - init editor with value |
Reimplemented in QDS_Table.
bool QtxTable::editHeader | ( | Orientation | o, |
const int | sec | ||
) |
Starts edition of header
o | - header orientation |
sec | - column/row |
References beginHeaderEdit().
void QtxTable::endEditHeader | ( | const bool | accept = true | ) |
Finishes edition of header
accept | - whether new value must be accepted |
References endHeaderEdit().
|
protectedvirtual |
Finishes edition of header
accept | - whether new value must be accepted |
References headerEdited(), Horizontal, isHeaderEditing(), myEditedHeader, myEditedSection, myHeaderEditor, setHeaderContentFromEditor(), and Vertical.
Custom event filter Starts edition of header by double click Finishes edition by escape/return/enter pressing
References beginHeaderEdit(), endHeaderEdit(), Horizontal, isHeaderEditing(), myHeaderEditor, and Vertical.
|
protected |
bool QtxTable::headerEditable | ( | Orientation | o | ) | const |
|
signal |
|
signal |
|
private |
hdr | - header |
sec | - column/row |
|
virtualslot |
Finishes edition and hides table
References endHeaderEdit().
|
protected |
References myEditedHeader, myEditedSection, and myHeaderEditor.
|
privateslot |
SLOT: called on header size changing
References myEditedHeader, and updateHeaderEditor().
|
privateslot |
SLOT: called on scroll
References updateHeaderEditor().
|
protectedvirtual |
Custom resize event handler
References updateHeaderEditor().
|
protectedvirtual |
Initialize editor with value
hdr | - header |
sec | - column/row |
editor | - editor |
Reimplemented in QDS_Table.
|
virtualslot |
Changes editable state of header
o | - header orientation |
on | - new state |
References endHeaderEdit(), header(), headerEditable(), myEditedHeader, and myHeaderEditable.
|
private |
Updates header editor
References headerSectionRect(), myEditedHeader, myEditedSection, and myHeaderEditor.
|
private |
|
private |
|
private |
|
private |