summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/widgets/kexidbdatetimeedit.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/plugins/forms/widgets/kexidbdatetimeedit.h
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;