20#ifndef KEXITABLEVIEWHEADER_H
21#define KEXITABLEVIEWHEADER_H
33class KEXIDATATABLE_EXPORT KexiTableViewHeader : public TQHeader
39 KexiTableViewHeader(TQWidget * parent = 0, const char * name = 0);
41 virtual ~KexiTableViewHeader();
43 int addLabel( const TQString & s, int size = -1 );
45 int addLabel( const TQIconSet & iconset, const TQString & s, int size = -1 );
47 void removeLabel( int section );
50 void setToolTip( int section, const TQString & toolTip );
52 virtual bool eventFilter(TQObject * watched, TQEvent * e);
54 void setSelectedSection( int section);
55 int selectedSection() const;
57 TQColor selectionBackgroundColor() const;
58 void setSelectionBackgroundColor( const TQColor &color);
61 void slotSizeChange( int section, int oldSize, int newSize );
64 virtual void paintSection ( TQPainter * p, int index, const TQRect & fr );
65 virtual void styleChange( TQStyle& oldStyle );
67 int m_lastToolTipSection;
70 TQStringList m_toolTips;
71 TQColor m_selectionBackgroundColor;
72 int m_selectedSection;
73 bool m_styleChangeEnabled : 1;
|