From d8cc8bdfa7fa624a526d5aa1626974e1444cb799 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 27 May 2011 19:21:21 +0000 Subject: 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 --- libk3b/tools/k3btoolbox.h | 50 ++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 24 deletions(-) (limited to 'libk3b/tools/k3btoolbox.h') diff --git a/libk3b/tools/k3btoolbox.h b/libk3b/tools/k3btoolbox.h index 828fca1..b93346b 100644 --- a/libk3b/tools/k3btoolbox.h +++ b/libk3b/tools/k3btoolbox.h @@ -16,56 +16,58 @@ #ifndef K3B_TOOLBOX_H #define K3B_TOOLBOX_H -#include -#include -#include -#include +#include +#include +#include +#include #include "k3b_export.h" class KAction; class KToggleAction; class KWidgetAction; -class QGridLayout; -class QPopupMenu; -class QResizeEvent; +class TQGridLayout; +class TQPopupMenu; +class TQResizeEvent; /** * internal class. Do not use! */ -class LIBK3B_EXPORT K3bToolBoxButton : public QToolButton +class LIBK3B_EXPORT K3bToolBoxButton : public TQToolButton { Q_OBJECT + TQ_OBJECT public: - K3bToolBoxButton( KAction*, QWidget* parent ); - K3bToolBoxButton( const QString& text, const QString& icon, - const QString& tooltip, const QString& whatsthis, - QObject* receiver, const char* slot, - QWidget* parent ); + K3bToolBoxButton( KAction*, TQWidget* tqparent ); + K3bToolBoxButton( const TQString& text, const TQString& icon, + const TQString& tooltip, const TQString& whatsthis, + TQObject* receiver, const char* slot, + TQWidget* tqparent ); private slots: void slotPopupActivated(); protected: - void resizeEvent( QResizeEvent* ); + void resizeEvent( TQResizeEvent* ); private: - QPopupMenu* m_popupMenu; + TQPopupMenu* m_popupMenu; }; -class LIBK3B_EXPORT K3bToolBox : public QFrame +class LIBK3B_EXPORT K3bToolBox : public TQFrame { Q_OBJECT + TQ_OBJECT public: - K3bToolBox( QWidget* parent = 0, const char* name = 0 ); + K3bToolBox( TQWidget* tqparent = 0, const char* name = 0 ); ~K3bToolBox(); - K3bToolBoxButton* addButton( const QString& text, const QString& icon, - const QString& tooltip = QString::null, const QString& whatsthis = QString::null, - QObject* receiver = 0, const char* slot = 0, + K3bToolBoxButton* addButton( const TQString& text, const TQString& icon, + const TQString& tooltip = TQString(), const TQString& whatsthis = TQString(), + TQObject* receiver = 0, const char* slot = 0, bool forceTextLabel = false ); K3bToolBoxButton* addButton( KAction*, bool forceTextLabel = false ); K3bToolBoxButton* addToggleButton( KToggleAction* ); @@ -76,8 +78,8 @@ class LIBK3B_EXPORT K3bToolBox : public QFrame * and destroy it on destruction. Becasue of this it is not fitted * for WidgetActions. */ - void addWidget( QWidget* ); - void addLabel( const QString& ); + void addWidget( TQWidget* ); + void addLabel( const TQString& ); void addSpacing(); void addSeparator(); void addStretch(); @@ -85,8 +87,8 @@ class LIBK3B_EXPORT K3bToolBox : public QFrame void clear(); protected: - QGridLayout* m_mainLayout; - QPtrList m_doNotDeleteWidgets; + TQGridLayout* m_mainLayout; + TQPtrList m_doNotDeleteWidgets; }; -- cgit v1.2.3