summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/widgets/kexidbdatetimeedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/forms/widgets/kexidbdatetimeedit.h')
-rw-r--r--kexi/plugins/forms/widgets/kexidbdatetimeedit.h47
1 files changed, 24 insertions, 23 deletions
diff --git a/kexi/plugins/forms/widgets/kexidbdatetimeedit.h b/kexi/plugins/forms/widgets/kexidbdatetimeedit.h
index 1f185b16..b5bbaec0 100644
--- a/kexi/plugins/forms/widgets/kexidbdatetimeedit.h
+++ b/kexi/plugins/forms/widgets/kexidbdatetimeedit.h
@@ -22,32 +22,33 @@
#define KexiDBDateTimeEdit_H
#include "kexiformdataiteminterface.h"
-#include <qdatetimeedit.h>
+#include <tqdatetimeedit.h>
class KDatePicker;
-class QDateTimeEditor;
+class TQDateTimeEditor;
class KPopupMenu;
//! @short A db-aware datetime editor
-class KEXIFORMUTILS_EXPORT KexiDBDateTimeEdit : public QWidget, public KexiFormDataItemInterface
+class KEXIFORMUTILS_EXPORT KexiDBDateTimeEdit : public TQWidget, public KexiFormDataItemInterface
{
Q_OBJECT
- Q_PROPERTY(QString dataSource READ dataSource WRITE setDataSource DESIGNABLE true)
- Q_PROPERTY(QCString dataSourceMimeType READ dataSourceMimeType WRITE setDataSourceMimeType DESIGNABLE true)
- // properties copied from QDateTimeEdit
- Q_PROPERTY( QDateTime dateTime READ dateTime WRITE setDateTime )
- 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)
+ // properties copied from TQDateTimeEdit
+ TQ_PROPERTY( TQDateTime dateTime READ dateTime WRITE setDateTime )
+ TQ_PROPERTY( bool readOnly READ isReadOnly WRITE setReadOnly DESIGNABLE true )
public:
enum Order { DMY, MDY, YMD, YDM };
- KexiDBDateTimeEdit(const QDateTime &datetime, QWidget *parent, const char *name=0);
+ KexiDBDateTimeEdit(const TQDateTime &datetime, TQWidget *tqparent, const char *name=0);
virtual ~KexiDBDateTimeEdit();
- 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.
@@ -63,7 +64,7 @@ class KEXIFORMUTILS_EXPORT KexiDBDateTimeEdit : public QWidget, public KexiFormD
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();
@@ -72,20 +73,20 @@ class KEXIFORMUTILS_EXPORT KexiDBDateTimeEdit : public QWidget, public KexiFormD
virtual void setEnabled(bool enabled);
// property functions
- QDateTime dateTime() const;
+ TQDateTime dateTime() const;
signals:
void dateTimeChanged();
public slots:
- inline void setDataSource(const QString &ds) { KexiFormDataItemInterface::setDataSource(ds); }
- inline void setDataSourceMimeType(const QCString &ds) { KexiFormDataItemInterface::setDataSourceMimeType(ds); }
- void setDateTime(const QDateTime &dt);
+ inline void setDataSource(const TQString &ds) { KexiFormDataItemInterface::setDataSource(ds); }
+ inline void setDataSourceMimeType(const TQCString &ds) { KexiFormDataItemInterface::setDataSourceMimeType(ds); }
+ void setDateTime(const TQDateTime &dt);
virtual void setReadOnly(bool set);
protected:
- virtual void setValueInternal(const QVariant& add, bool removeOld);
- virtual bool eventFilter(QObject *o, QEvent *e);
+ virtual void setValueInternal(const TQVariant& add, bool removeOld);
+ virtual bool eventFilter(TQObject *o, TQEvent *e);
protected slots:
void slotValueChanged();
@@ -94,9 +95,9 @@ class KEXIFORMUTILS_EXPORT KexiDBDateTimeEdit : public QWidget, public KexiFormD
private:
KDatePicker *m_datePicker;
- QDateEdit* m_dateEdit;
- QTimeEdit* m_timeEdit;
- QDateTimeEditor *m_dte_date, *m_dte_time;
+ TQDateEdit* m_dateEdit;
+ TQTimeEdit* m_timeEdit;
+ TQDateTimeEditor *m_dte_date, *m_dte_time;
KPopupMenu *m_datePickerPopupMenu;
bool m_invalidState : 1;
bool m_cleared : 1;