diff options
Diffstat (limited to 'kexi/plugins/forms/widgets/kexidbtimeedit.h')
-rw-r--r-- | kexi/plugins/forms/widgets/kexidbtimeedit.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/kexi/plugins/forms/widgets/kexidbtimeedit.h b/kexi/plugins/forms/widgets/kexidbtimeedit.h index 9665b1f9..6b29a7ac 100644 --- a/kexi/plugins/forms/widgets/kexidbtimeedit.h +++ b/kexi/plugins/forms/widgets/kexidbtimeedit.h @@ -23,26 +23,27 @@ #include "kexiformdataiteminterface.h" #include "kexidbtextwidgetinterface.h" -#include <qdatetimeedit.h> +#include <tqdatetimeedit.h> -class QDateTimeEditor; +class TQDateTimeEditor; //! @short A db-aware time editor -class KEXIFORMUTILS_EXPORT KexiDBTimeEdit : public QTimeEdit, public KexiFormDataItemInterface +class KEXIFORMUTILS_EXPORT KexiDBTimeEdit : public TQTimeEdit, public KexiFormDataItemInterface { Q_OBJECT - Q_PROPERTY(QString dataSource READ dataSource WRITE setDataSource DESIGNABLE true) - Q_PROPERTY(QCString dataSourceMimeType READ dataSourceMimeType WRITE setDataSourceMimeType DESIGNABLE true) - Q_PROPERTY( bool readOnly READ isReadOnly WRITE setReadOnly DESIGNABLE true ) + TQ_OBJECT + TQ_PROPERTY(TQString dataSource READ dataSource WRITE setDataSource DESIGNABLE true) + TQ_PROPERTY(TQCString dataSourceMimeType READ dataSourceMimeType WRITE setDataSourceMimeType DESIGNABLE true) + TQ_PROPERTY( bool readOnly READ isReadOnly WRITE setReadOnly DESIGNABLE true ) public: - KexiDBTimeEdit(const QTime &time, QWidget *parent, const char *name=0); + KexiDBTimeEdit(const TQTime &time, TQWidget *tqparent, const char *name=0); virtual ~KexiDBTimeEdit(); - inline QString dataSource() const { return KexiFormDataItemInterface::dataSource(); } - inline QCString dataSourceMimeType() const { return KexiFormDataItemInterface::dataSourceMimeType(); } - virtual QVariant value(); - virtual void setInvalidState( const QString& displayText ); + inline TQString dataSource() const { return KexiFormDataItemInterface::dataSource(); } + inline TQCString dataSourceMimeType() const { return KexiFormDataItemInterface::dataSourceMimeType(); } + virtual TQVariant value(); + virtual void setInvalidState( const TQString& displayText ); //! \return true if editor's value is null (not empty) //! Used for checking if a given constraint within table of form is met. @@ -58,7 +59,7 @@ class KEXIFORMUTILS_EXPORT KexiDBTimeEdit : public QTimeEdit, public KexiFormDat virtual bool isReadOnly() const; /*! \return the view widget of this item, e.g. line edit widget. */ - virtual QWidget* widget(); + virtual TQWidget* widget(); virtual bool cursorAtStart(); virtual bool cursorAtEnd(); @@ -67,18 +68,18 @@ class KEXIFORMUTILS_EXPORT KexiDBTimeEdit : public QTimeEdit, public KexiFormDat virtual void setEnabled(bool enabled); public slots: - inline void setDataSource(const QString &ds) { KexiFormDataItemInterface::setDataSource(ds); } - inline void setDataSourceMimeType(const QCString &ds) { KexiFormDataItemInterface::setDataSourceMimeType(ds); } + inline void setDataSource(const TQString &ds) { KexiFormDataItemInterface::setDataSource(ds); } + inline void setDataSourceMimeType(const TQCString &ds) { KexiFormDataItemInterface::setDataSourceMimeType(ds); } virtual void setReadOnly(bool set); protected slots: - void slotValueChanged(const QTime&); + void slotValueChanged(const TQTime&); protected: - virtual void setValueInternal(const QVariant& add, bool removeOld); + virtual void setValueInternal(const TQVariant& add, bool removeOld); private: - QDateTimeEditor* m_dte_time; + TQDateTimeEditor* m_dte_time; bool m_invalidState : 1; bool m_cleared : 1; bool m_readOnly : 1; |