summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/KoTabBar.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficeui/KoTabBar.h')
-rw-r--r--lib/kofficeui/KoTabBar.h53
1 files changed, 27 insertions, 26 deletions
diff --git a/lib/kofficeui/KoTabBar.h b/lib/kofficeui/KoTabBar.h
index e582c3d2..1ab9d6dc 100644
--- a/lib/kofficeui/KoTabBar.h
+++ b/lib/kofficeui/KoTabBar.h
@@ -25,8 +25,8 @@
#ifndef kotabbar_h
#define kotabbar_h
-#include <qwidget.h>
-#include <qstringlist.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
#include <koffice_export.h>
class KoTabBarPrivate;
@@ -58,21 +58,22 @@ class KoTabBarPrivate;
*
* @short A bar with tabs and scroll buttons.
*/
-class KOFFICEUI_EXPORT KoTabBar : public QWidget
+class KOFFICEUI_EXPORT KoTabBar : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
- Q_PROPERTY( QString activeTab READ activeTab WRITE setActiveTab )
- Q_PROPERTY( bool readOnly READ readOnly WRITE setReadOnly )
- Q_PROPERTY( QStringList tabs READ tabs WRITE setTabs )
- Q_PROPERTY( unsigned count READ count )
+ TQ_PROPERTY( TQString activeTab READ activeTab WRITE setActiveTab )
+ TQ_PROPERTY( bool readOnly READ readOnly WRITE setReadOnly )
+ TQ_PROPERTY( TQStringList tabs READ tabs WRITE setTabs )
+ TQ_PROPERTY( unsigned count READ count )
public:
/**
* Creates a new tabbar.
*/
- KoTabBar( QWidget* parent = 0, const char *name = 0 );
+ KoTabBar( TQWidget* tqparent = 0, const char *name = 0 );
/**
* Destroy the tabbar.
@@ -93,7 +94,7 @@ public:
/**
* Returns all the tab as list of strings.
*/
- QStringList tabs() const;
+ TQStringList tabs() const;
/**
* Returns number of tabs.
@@ -104,7 +105,7 @@ public:
/**
* Returns the active tab.
*/
- QString activeTab() const;
+ TQString activeTab() const;
/**
* Returns true if it is possible to scroll one tab back.
@@ -123,14 +124,14 @@ public:
/**
* Ensures that specified tab is visible.
*/
- void ensureVisible( const QString& tab );
+ void ensureVisible( const TQString& tab );
public slots:
/**
* Replaces all tabs with the list of strings.
*/
- void setTabs( const QStringList& list );
+ void setTabs( const TQStringList& list );
/**
* Sets the tab bar to be read only.
@@ -150,19 +151,19 @@ public slots:
/**
* Adds a tab to the tab bar.
*/
- void addTab( const QString& text );
+ void addTab( const TQString& text );
/**
* Removes a tab from the bar. If the tab was the active one then
* no tab will be active.
* It is recommended to call setActiveTab after a call to this function.
*/
- void removeTab( const QString& text );
+ void removeTab( const TQString& text );
/**
* Renames a tab.
*/
- void renameTab( const QString& old_name, const QString& new_name );
+ void renameTab( const TQString& old_name, const TQString& new_name );
/**
* Moves a tab to another position and reorder other tabs.
@@ -211,21 +212,21 @@ public slots:
/**
* Sets active tab.
*/
- void setActiveTab( const QString& text );
+ void setActiveTab( const TQString& text );
/**
* Removes all tabs.
*/
void clear();
- QSize sizeHint() const;
+ TQSize tqsizeHint() const;
signals:
/**
* Emitted if the active tab changed.
*/
- void tabChanged( const QString& _text );
+ void tabChanged( const TQString& _text );
/**
* This signal is emitted whenever a tab is dragged, moved and
@@ -243,7 +244,7 @@ signals:
* This signal is emitted whenever the tab bar is right-clicked.
* Typically it is used to popup a context menu.
*/
- void contextMenu( const QPoint& pos );
+ void contextMenu( const TQPoint& pos );
/**
* This signal is emitted whenever the tab bar is double-clicked.
@@ -255,13 +256,13 @@ protected slots:
void autoScrollForward();
protected:
- virtual void paintEvent ( QPaintEvent* ev );
- virtual void resizeEvent( QResizeEvent* ev );
- virtual void mousePressEvent ( QMouseEvent* ev );
- virtual void mouseReleaseEvent ( QMouseEvent* ev );
- virtual void mouseDoubleClickEvent ( QMouseEvent* ev );
- virtual void mouseMoveEvent ( QMouseEvent* ev );
- virtual void wheelEvent ( QWheelEvent * e );
+ virtual void paintEvent ( TQPaintEvent* ev );
+ virtual void resizeEvent( TQResizeEvent* ev );
+ virtual void mousePressEvent ( TQMouseEvent* ev );
+ virtual void mouseReleaseEvent ( TQMouseEvent* ev );
+ virtual void mouseDoubleClickEvent ( TQMouseEvent* ev );
+ virtual void mouseMoveEvent ( TQMouseEvent* ev );
+ virtual void wheelEvent ( TQWheelEvent * e );
private:
KoTabBarPrivate *d;