diff options
author | Michele Calgaro <[email protected]> | 2023-09-25 13:59:20 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-09-26 10:27:28 +0900 |
commit | 74d7a64994b02e7d880f4e9960f653b2510d48d8 (patch) | |
tree | 24cc990fbaa09028b97544fc8c9da64f9bb549fb /kommander/examples/old/widgetgenerator.kmdr | |
parent | 5df35638d9979618b39681efcda8bd05d7c96cf8 (diff) | |
download | tdewebdev-74d7a64994b02e7d880f4e9960f653b2510d48d8.tar.gz tdewebdev-74d7a64994b02e7d880f4e9960f653b2510d48d8.zip |
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* versionr14.1.1
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 0580616e20b68c764cdbbd9a01c9dd21f99766d4)
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 ) |