diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
commit | d8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch) | |
tree | f295f1c545b319963d5357af79fe08991d8141d9 /src/k3bprojecttabwidget.h | |
parent | 2a39a080579fb52a2599c02b2939795385b89093 (diff) | |
download | k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip |
TQt4 port k3b
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/k3bprojecttabwidget.h')
-rw-r--r-- | src/k3bprojecttabwidget.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/k3bprojecttabwidget.h b/src/k3bprojecttabwidget.h index 048a8bc..4cadf33 100644 --- a/src/k3bprojecttabwidget.h +++ b/src/k3bprojecttabwidget.h @@ -17,7 +17,7 @@ #ifndef K3BPROJECTTABWIDGET_H #define K3BPROJECTTABWIDGET_H -#include <qtabwidget.h> +#include <tqtabwidget.h> #include <kurl.h> class KAction; @@ -31,38 +31,39 @@ class K3bDoc; * * @author Sebastian Trueg */ -class K3bProjectTabWidget : public QTabWidget +class K3bProjectTabWidget : public TQTabWidget { Q_OBJECT + TQ_OBJECT public: - K3bProjectTabWidget( QWidget *parent = 0, const char *name = 0, WFlags = 0 ); + K3bProjectTabWidget( TQWidget *tqparent = 0, const char *name = 0, WFlags = 0 ); ~K3bProjectTabWidget(); void insertTab( K3bDoc* ); - void addTab( QWidget * child, const QString & label ); - void addTab( QWidget * child, const QIconSet & iconset, const QString & label ); - void addTab( QWidget * child, QTab * tab ); - void insertTab( QWidget * child, const QString & label, int index = -1 ); - void insertTab( QWidget * child, const QIconSet & iconset, const QString & label, int index = -1 ); - void insertTab( QWidget * child, QTab * tab, int index = -1 ); + void addTab( TQWidget * child, const TQString & label ); + void addTab( TQWidget * child, const TQIconSet & iconset, const TQString & label ); + void addTab( TQWidget * child, TQTab * tab ); + void insertTab( TQWidget * child, const TQString & label, int index = -1 ); + void insertTab( TQWidget * child, const TQIconSet & iconset, const TQString & label, int index = -1 ); + void insertTab( TQWidget * child, TQTab * tab, int index = -1 ); /** * \return the project for the tab at position \p pos or 0 in case the tab is * not a project tab. */ - K3bDoc* projectAt( const QPoint& pos ) const; + K3bDoc* projectAt( const TQPoint& pos ) const; /** * inserts the given action into the popup menu for the tabs */ void insertAction( KAction* ); - bool eventFilter( QObject* o, QEvent* e ); + bool eventFilter( TQObject* o, TQEvent* e ); public slots: - void removePage( QWidget* ); + void removePage( TQWidget* ); private slots: void slotDocChanged( K3bDoc* ); @@ -72,7 +73,7 @@ class K3bProjectTabWidget : public QTabWidget KActionMenu* m_projectActionMenu; class ProjectData; - QMap<K3bDoc*, ProjectData> m_projectDataMap; + TQMap<K3bDoc*, ProjectData> m_projectDataMap; }; #endif |