diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/kwidgetlister.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/kwidgetlister.h')
-rw-r--r-- | libkdepim/kwidgetlister.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libkdepim/kwidgetlister.h b/libkdepim/kwidgetlister.h index 86a3b68b9..472dfc8df 100644 --- a/libkdepim/kwidgetlister.h +++ b/libkdepim/kwidgetlister.h @@ -32,8 +32,8 @@ #ifndef _KWIDGETLISTER_H_ #define _KWIDGETLISTER_H_ -#include <qwidget.h> -#include <qptrlist.h> +#include <tqwidget.h> +#include <tqptrlist.h> #include <kdepimmacros.h> 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<QWidget> mWidgetList; + TQPtrList<TQWidget> 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; }; |