summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/widgets/kexidbdoublespinbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/forms/widgets/kexidbdoublespinbox.h')
-rw-r--r--kexi/plugins/forms/widgets/kexidbdoublespinbox.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/kexi/plugins/forms/widgets/kexidbdoublespinbox.h b/kexi/plugins/forms/widgets/kexidbdoublespinbox.h
index c6bc627d..1445980c 100644
--- a/kexi/plugins/forms/widgets/kexidbdoublespinbox.h
+++ b/kexi/plugins/forms/widgets/kexidbdoublespinbox.h
@@ -22,25 +22,26 @@
#define KexiDBDoubleSpinBox_H
#include "kexiformdataiteminterface.h"
-#include <qwidget.h>
+#include <tqwidget.h>
#include <knuminput.h>
//! @short A db-aware int spin box
class KEXIFORMUTILS_EXPORT KexiDBDoubleSpinBox : public KDoubleSpinBox, 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:
- KexiDBDoubleSpinBox(QWidget *parent, const char *name=0);
+ KexiDBDoubleSpinBox(TQWidget *tqparent, const char *name=0);
virtual ~KexiDBDoubleSpinBox();
- 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.
@@ -56,7 +57,7 @@ class KEXIFORMUTILS_EXPORT KexiDBDoubleSpinBox : public KDoubleSpinBox, public K
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();
@@ -64,13 +65,13 @@ class KEXIFORMUTILS_EXPORT KexiDBDoubleSpinBox : public KDoubleSpinBox, public K
public slots:
virtual void setEnabled(bool enabled);
- 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); }
void slotValueChanged();
virtual void setReadOnly(bool set);
protected:
- virtual void setValueInternal(const QVariant& add, bool removeOld);
+ virtual void setValueInternal(const TQVariant& add, bool removeOld);
private:
bool m_invalidState : 1;