Eneboo - Documentación para desarrolladores
Tipos públicos | Señales | Métodos públicos | Métodos protegidos | Amigas
Referencia de la Clase QTableHeader
Diagrama de herencias de QTableHeader
QHeader QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject

Lista de todos los miembros.

Tipos públicos

enum  SectionState { Normal, Bold, Selected }

Señales

void sectionSizeChanged (int s)

Métodos públicos

 QTableHeader (int, QTable *t, QWidget *parent=0, const char *name=0)
 ~QTableHeader ()
void addLabel (const QString &s, int size)
void setLabel (int section, const QString &s, int size=-1)
void setLabel (int section, const QIconSet &iconset, const QString &s, int size=-1)
void setLabels (const QStringList &labels)
void removeLabel (int section)
void setSectionState (int s, SectionState state)
void setSectionStateToAll (SectionState state)
SectionState sectionState (int s) const
int sectionSize (int section) const
int sectionPos (int section) const
int sectionAt (int section) const
void setSectionStretchable (int s, bool b)
bool isSectionStretchable (int s) const
void updateCache ()

Métodos protegidos

void paintEvent (QPaintEvent *e)
void paintSection (QPainter *p, int index, const QRect &fr)
void mousePressEvent (QMouseEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void mouseDoubleClickEvent (QMouseEvent *e)
void resizeEvent (QResizeEvent *e)

Amigas

class QTable

Documentación de las enumeraciones miembro de la clase

Valores de enumeraciones:
Normal 
Bold 
Selected 

Documentación del constructor y destructor

QTableHeader::QTableHeader ( int  i,
QTable t,
QWidget parent = 0,
const char *  name = 0 
)

Creates a new table header called name with i sections. It is a child of widget parent and attached to table t.

QTableHeader::~QTableHeader ( ) [inline]

Documentación de las funciones miembro

void QTableHeader::addLabel ( const QString s,
int  size 
)

Adds a new section, size pixels wide (or high for vertical headers) with the label s. If size is negative the section's size is calculated based on the width (or height) of the label's text.

Reimplementado de QHeader.

bool QTableHeader::isSectionStretchable ( int  s) const

Returns TRUE if section s is stretcheable; otherwise returns FALSE.

Ver también:
setSectionStretchable()
void QTableHeader::mouseDoubleClickEvent ( QMouseEvent e) [protected, virtual]

Reimplementado de QHeader.

void QTableHeader::mouseMoveEvent ( QMouseEvent e) [protected, virtual]

Reimplementado de QHeader.

void QTableHeader::mousePressEvent ( QMouseEvent e) [protected, virtual]

Reimplementado de QHeader.

void QTableHeader::mouseReleaseEvent ( QMouseEvent e) [protected, virtual]

Reimplementado de QHeader.

void QTableHeader::paintEvent ( QPaintEvent e) [protected, virtual]

Reimplementado de QHeader.

void QTableHeader::paintSection ( QPainter p,
int  index,
const QRect fr 
) [protected, virtual]

Paints the header section with index index into the rectangular region fr on the painter p.

Reimplementado de QHeader.

void QTableHeader::removeLabel ( int  section)

Removes section section. If the section does not exist, nothing happens.

Reimplementado de QHeader.

void QTableHeader::resizeEvent ( QResizeEvent e) [protected, virtual]

Reimplementado de QHeader.

int QTableHeader::sectionAt ( int  pos) const

Returns the number of the section at index position pos or -1 if there is no section at the position given.

Ver también:
sectionPos()

Reimplementado de QHeader.

int QTableHeader::sectionPos ( int  section) const

Returns the start position of section section in pixels or -1 if section is out of range.

Ver también:
sectionAt()

Reimplementado de QHeader.

int QTableHeader::sectionSize ( int  section) const

Returns the size of section section in pixels or -1 if section is out of range.

Reimplementado de QHeader.

void QTableHeader::sectionSizeChanged ( int  s) [signal]
QTableHeader::SectionState QTableHeader::sectionState ( int  s) const

Returns the SectionState of section s.

Ver también:
setSectionState()
void QTableHeader::setLabel ( int  section,
const QString s,
int  size = -1 
) [virtual]

Sets the text of section section to s. The section's width is set to size if size >= 0; otherwise it is left unchanged. Any icon set that has been set for this section remains unchanged.

If the section does not exist, nothing happens.

Reimplementado de QHeader.

void QTableHeader::setLabel ( int  section,
const QIconSet iconset,
const QString s,
int  size = -1 
) [virtual]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Sets the icon for section section to iconset and the text to s. The section's width is set to size if size >= 0; otherwise it is left unchanged.

If the section does not exist, nothing happens.

Reimplementado de QHeader.

void QTableHeader::setLabels ( const QStringList labels)
void QTableHeader::setSectionState ( int  s,
SectionState  astate 
)

Sets the SectionState of section s to astate.

Ver también:
sectionState()
void QTableHeader::setSectionStateToAll ( SectionState  state)
void QTableHeader::setSectionStretchable ( int  s,
bool  b 
)

If b is TRUE, section s is stretchable; otherwise the section is not stretchable.

Ver también:
isSectionStretchable()
void QTableHeader::updateCache ( )

Documentación de las funciones relacionadas y clases amigas

friend class QTable [friend]

Reimplementado de QHeader.


La documentación para esta clase fue generada a partir del siguiente fichero:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'