summaryrefslogtreecommitdiffstats
path: root/kexi/widget/tableview/kexitableviewheader.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget/tableview/kexitableviewheader.h')
-rw-r--r--kexi/widget/tableview/kexitableviewheader.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/kexi/widget/tableview/kexitableviewheader.h b/kexi/widget/tableview/kexitableviewheader.h
index 5da3fa7b..efc35055 100644
--- a/kexi/widget/tableview/kexitableviewheader.h
+++ b/kexi/widget/tableview/kexitableviewheader.h
@@ -20,9 +20,9 @@
#ifndef KEXITABLEVIEWHEADER_H
#define KEXITABLEVIEWHEADER_H
-#include <qheader.h>
+#include <tqheader.h>
-class QStyle;
+class TQStyle;
//! @short A table view header with additional actions.
/*! Displays field description (Field::description()) text as tool tip, if available.
@@ -30,44 +30,45 @@ class QStyle;
\todo react on indexChange ( int section, int fromIndex, int toIndex ) signal
*/
-class KEXIDATATABLE_EXPORT KexiTableViewHeader : public QHeader
+class KEXIDATATABLE_EXPORT KexiTableViewHeader : public TQHeader
{
Q_OBJECT
+ TQ_OBJECT
public:
- KexiTableViewHeader(QWidget * parent = 0, const char * name = 0);
+ KexiTableViewHeader(TQWidget * tqparent = 0, const char * name = 0);
virtual ~KexiTableViewHeader();
- int addLabel( const QString & s, int size = -1 );
+ int addLabel( const TQString & s, int size = -1 );
- int addLabel( const QIconSet & iconset, const QString & s, int size = -1 );
+ int addLabel( const TQIconSet & iconset, const TQString & s, int size = -1 );
void removeLabel( int section );
/*! Sets \a toolTip for \a section. */
- void setToolTip( int section, const QString & toolTip );
+ void setToolTip( int section, const TQString & toolTip );
- virtual bool eventFilter(QObject * watched, QEvent * e);
+ virtual bool eventFilter(TQObject * watched, TQEvent * e);
void setSelectedSection(int section);
int selectedSection() const;
- QColor selectionBackgroundColor() const;
- void setSelectionBackgroundColor(const QColor &color);
+ TQColor selectionBackgroundColor() const;
+ void setSelectionBackgroundColor(const TQColor &color);
protected slots:
void slotSizeChange(int section, int oldSize, int newSize );
protected:
- virtual void paintSection ( QPainter * p, int index, const QRect & fr );
- virtual void styleChange( QStyle& oldStyle );
+ virtual void paintSection ( TQPainter * p, int index, const TQRect & fr );
+ virtual void styleChange( TQStyle& oldStyle );
int m_lastToolTipSection;
- QRect m_toolTipRect;
+ TQRect m_toolTipRect;
- QStringList m_toolTips;
- QColor m_selectionBackgroundColor;
+ TQStringList m_toolTips;
+ TQColor m_selectionBackgroundColor;
int m_selectedSection;
bool m_styleChangeEnabled : 1;
};