diff options
Diffstat (limited to 'kommander/examples/old/widgetgenerator.kmdr')
-rw-r--r-- | kommander/examples/old/widgetgenerator.kmdr | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kommander/examples/old/widgetgenerator.kmdr b/kommander/examples/old/widgetgenerator.kmdr index a6d8eaaa..c1be33a2 100644 --- a/kommander/examples/old/widgetgenerator.kmdr +++ b/kommander/examples/old/widgetgenerator.kmdr @@ -100,37 +100,37 @@ headerContent="/**************************************************************** /* OTHER INCLUDES */ #include <kommanderwidget.h> -class QWidget; +class TQWidget; class QShowEvent; class @className : public @inheritClassName, public KommanderWidget { TQ_OBJECT - TQ_PROPERTY(QString populationText READ populationText WRITE setPopulationText DESIGNABLE false) + TQ_PROPERTY(TQString populationText READ populationText WRITE setPopulationText DESIGNABLE false) TQ_PROPERTY(QStringList associations READ associatedText WRITE setAssociatedText DESIGNABLE false) TQ_PROPERTY(bool KommanderWidget READ isKommanderWidget) public: - @className(QWidget *a_parent, const char *a_name); + @className(TQWidget *a_parent, const char *a_name); ~@className(); - virtual QString widgetText() const; + virtual TQString widgetText() const; virtual bool isKommanderWidget() const; virtual void setAssociatedText(QStringList); virtual QStringList associatedText() const; - virtual QString currentState() const; + virtual TQString currentState() const; - virtual QString populationText() const; - virtual void setPopulationText(QString); + virtual TQString populationText() const; + virtual void setPopulationText(TQString); public Q_SLOTS: - virtual void setWidgetText(const QString &); + virtual void setWidgetText(const TQString &); virtual void populate(); Q_SIGNALS: void widgetOpened(); - void widgetTextChanged(const QString &); + void widgetTextChanged(const TQString &); protected: void showEvent( QShowEvent *e ); private: @@ -169,7 +169,7 @@ cppContent="/******************************************************************* #include <kommanderwidget.h> #include \"$classNameLower.h\" -@className::@className(QWidget *a_parent, const char *a_name) +@className::@className(TQWidget *a_parent, const char *a_name) : @inheritClassName(a_parent, a_name), KommanderWidget(this) { QStringList states; @@ -182,9 +182,9 @@ cppContent="/******************************************************************* { } -QString @className::currentState() const +TQString @className::currentState() const { - return QString(\"default\"); + return TQString(\"default\"); } bool @className::isKommanderWidget() const @@ -204,30 +204,30 @@ void @className::setAssociatedText(QStringList a_at) void @className::populate() { - QString txt = KommanderWidget::evalAssociatedText( populationText() ); + TQString txt = KommanderWidget::evalAssociatedText( populationText() ); setWidgetText( txt ); } -QString @className::populationText() const +TQString @className::populationText() const { return KommanderWidget::populationText(); } -void @className::setPopulationText(QString a_text) +void @className::setPopulationText(TQString a_text) { KommanderWidget::setPopulationText(a_text); } -void @className::setWidgetText(const QString &a_text) +void @className::setWidgetText(const TQString &a_text) { //set the widget text of your widget here emit widgetTextChanged(a_text); } -QString @className::widgetText() const +TQString @className::widgetText() const { // implement your widget text here - return QString::null; + return TQString::null; } void @className::showEvent( QShowEvent *e ) |