From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdepim/kwidgetlister.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'libkdepim/kwidgetlister.h') diff --git a/libkdepim/kwidgetlister.h b/libkdepim/kwidgetlister.h index 86a3b68b..472dfc8d 100644 --- a/libkdepim/kwidgetlister.h +++ b/libkdepim/kwidgetlister.h @@ -32,8 +32,8 @@ #ifndef _KWIDGETLISTER_H_ #define _KWIDGETLISTER_H_ -#include -#include +#include +#include #include class QPushButton; @@ -66,7 +66,7 @@ class KDE_EXPORT KWidgetLister : public QWidget { Q_OBJECT public: - KWidgetLister( int minWidgets=1, int maxWidgets=8, QWidget* parent=0, const char* name=0 ); + KWidgetLister( int minWidgets=1, int maxWidgets=8, TQWidget* parent=0, const char* name=0 ); virtual ~KWidgetLister(); protected slots: @@ -99,8 +99,8 @@ protected: when showing it on screen. Make sure you call this implementaion, though, since you cannot put the widget on screen from derived classes (@p mLayout is private). - Make sure the parent of the QWidget to add is this KWidgetLister. */ - virtual void addWidgetAtEnd(QWidget *w =0); + Make sure the parent of the TQWidget to add is this KWidgetLister. */ + virtual void addWidgetAtEnd(TQWidget *w =0); /** Removes a single (always the last) widget. Doesn't care if there are still only @ref mMinWidgets left on screen and whether it should enable/disable any controls. It simply does what it is @@ -111,12 +111,12 @@ protected: virtual void removeLastWidget(); /** Called to clear a given widget. The default implementation does nothing. */ - virtual void clearWidget( QWidget* ); + virtual void clearWidget( TQWidget* ); /** Because QT 2.x does not support signals/slots in template classes, we are forced to emulate this by forcing the implementers of subclasses of KWidgetLister to reimplement this function which replaces the "@p new @p T" call. */ - virtual QWidget* createWidget( QWidget *parent ); + virtual TQWidget* createWidget( TQWidget *parent ); /** Sets the number of widgets on scrren to exactly @p aNum. Doesn't check if @p aNum is inside the range @p [mMinWidgets,mMaxWidgets]. */ @@ -124,7 +124,7 @@ protected: /** The list of widgets. Note that this list is set to auto-delete, meaning that widgets that are removed from the screen by either @ref slotFewer or @ref slotClear will be destroyed! */ - QPtrList mWidgetList; + TQPtrList mWidgetList; /** The minimum number of widgets that are to stay on screen. */ int mMinWidgets; /** The maximum number of widgets that are to be shown on screen. */ @@ -134,7 +134,7 @@ signals: /** This signal is emitted whenever a widget was added */ void widgetAdded(); /** This signal is emitted whenever a widget was added */ - void widgetAdded(QWidget *); + void widgetAdded(TQWidget *); /** This signal is emitted whenever a widget was removed */ void widgetRemoved(); /** This signal is emitted whenever the clear button is clicked */ @@ -143,9 +143,9 @@ signals: private: void enableControls(); - QPushButton *mBtnMore, *mBtnFewer, *mBtnClear; - QVBoxLayout *mLayout; - QHBox *mButtonBox; + TQPushButton *mBtnMore, *mBtnFewer, *mBtnClear; + TQVBoxLayout *mLayout; + TQHBox *mButtonBox; }; -- cgit v1.2.3