From 7227f5a342ea4a7317d74b43e90f798d19d6ddb4 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Mon, 22 Oct 2012 15:01:02 -0500 Subject: [PATCH] Update TQt3 property/enum macros --- kexi/formeditor/spring.h | 2 +- kexi/plugins/forms/widgets/kexidbautofield.h | 2 +- kexi/plugins/forms/widgets/kexidbcheckbox.h | 2 +- kexi/plugins/forms/widgets/kexidbdateedit.h | 2 +- kexi/plugins/forms/widgets/kexiframe.h | 2 +- kexi/widget/utils/kexigradientwidget.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kexi/formeditor/spring.h b/kexi/formeditor/spring.h index 46254cff9..09f9cccb5 100644 --- a/kexi/formeditor/spring.h +++ b/kexi/formeditor/spring.h @@ -37,7 +37,7 @@ class KFORMEDITOR_EXPORT Spring : public TQWidget { Q_OBJECT - Q_ENUMS(SizeType) + TQ_ENUMS(SizeType) TQ_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation) TQ_PROPERTY(SizeType sizeType READ sizeType WRITE setSizeType) diff --git a/kexi/plugins/forms/widgets/kexidbautofield.h b/kexi/plugins/forms/widgets/kexidbautofield.h index 24423441f..b1ba23f3c 100644 --- a/kexi/plugins/forms/widgets/kexidbautofield.h +++ b/kexi/plugins/forms/widgets/kexidbautofield.h @@ -56,7 +56,7 @@ class KEXIFORMUTILS_EXPORT KexiDBAutoField : /*internal, for design time only*/ TQ_PROPERTY(int fieldTypeInternal READ fieldTypeInternal WRITE setFieldTypeInternal DESIGNABLE true STORED false) TQ_PROPERTY(TQString fieldCaptionInternal READ fieldCaptionInternal WRITE setFieldCaptionInternal DESIGNABLE true STORED false) - Q_ENUMS( WidgetType LabelPosition ) + TQ_ENUMS( WidgetType LabelPosition ) public: enum WidgetType { Auto = 100, Text, Integer, Double, Boolean, Date, Time, DateTime, diff --git a/kexi/plugins/forms/widgets/kexidbcheckbox.h b/kexi/plugins/forms/widgets/kexidbcheckbox.h index daaa14bec..ecf0da2ff 100644 --- a/kexi/plugins/forms/widgets/kexidbcheckbox.h +++ b/kexi/plugins/forms/widgets/kexidbcheckbox.h @@ -32,7 +32,7 @@ class KEXIFORMUTILS_EXPORT KexiDBCheckBox : public TQCheckBox, public KexiFormDa TQ_PROPERTY(TQString dataSource READ dataSource WRITE setDataSource DESIGNABLE true) TQ_PROPERTY(TQCString dataSourceMimeType READ dataSourceMimeType WRITE setDataSourceMimeType DESIGNABLE true) TQ_OVERRIDE( Tristate tristate READ isTristate WRITE setTristate ) - Q_ENUMS( Tristate ) + TQ_ENUMS( Tristate ) public: KexiDBCheckBox(const TQString &text, TQWidget *parent, const char *name=0); diff --git a/kexi/plugins/forms/widgets/kexidbdateedit.h b/kexi/plugins/forms/widgets/kexidbdateedit.h index be97e937e..a9ddd6a32 100644 --- a/kexi/plugins/forms/widgets/kexidbdateedit.h +++ b/kexi/plugins/forms/widgets/kexidbdateedit.h @@ -36,7 +36,7 @@ class KEXIFORMUTILS_EXPORT KexiDBDateEdit : public TQWidget, public KexiFormData TQ_PROPERTY(TQString dataSource READ dataSource WRITE setDataSource DESIGNABLE true) TQ_PROPERTY(TQCString dataSourceMimeType READ dataSourceMimeType WRITE setDataSourceMimeType DESIGNABLE true) // properties copied from TQDateEdit - Q_ENUMS( Order ) + TQ_ENUMS( Order ) TQ_PROPERTY( Order order READ order WRITE setOrder DESIGNABLE true) TQ_PROPERTY( TQDate date READ date WRITE setDate DESIGNABLE true) TQ_PROPERTY( bool autoAdvance READ autoAdvance WRITE setAutoAdvance DESIGNABLE true) diff --git a/kexi/plugins/forms/widgets/kexiframe.h b/kexi/plugins/forms/widgets/kexiframe.h index 44197aa49..95aae4872 100644 --- a/kexi/plugins/forms/widgets/kexiframe.h +++ b/kexi/plugins/forms/widgets/kexiframe.h @@ -27,7 +27,7 @@ class KEXIFORMUTILS_EXPORT KexiFrame : public TQFrame { Q_OBJECT -//todo Q_ENUMS( Shape Shadow ) +//todo TQ_ENUMS( Shape Shadow ) TQ_PROPERTY( TQColor frameColor READ frameColor WRITE setFrameColor DESIGNABLE true ) //todo TQ_OVERRIDE( Shape frameShape READ frameShape WRITE setFrameShape ) //todo TQ_OVERRIDE( Shadow frameShadow READ frameShadow WRITE setFrameShadow ) diff --git a/kexi/widget/utils/kexigradientwidget.h b/kexi/widget/utils/kexigradientwidget.h index a8feb0fa1..8be2e5b55 100644 --- a/kexi/widget/utils/kexigradientwidget.h +++ b/kexi/widget/utils/kexigradientwidget.h @@ -42,7 +42,7 @@ class KEXIGUIUTILS_EXPORT KexiGradientWidget : public TQWidget { TQ_PROPERTY(TQColor gradientColor1 READ gradientColor1 WRITE setGradientColor1 DESIGNABLE true) TQ_PROPERTY(TQColor gradientColor2 READ gradientColor2 WRITE setGradientColor2 DESIGNABLE true) TQ_PROPERTY(double blendOpacity READ blendOpacity WRITE setBlendOpacity DESIGNABLE true) - Q_ENUMS( DisplayMode GradientType ) + TQ_ENUMS( DisplayMode GradientType ) public: /*!