summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/widgets/kexidblineedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/forms/widgets/kexidblineedit.h')
-rw-r--r--kexi/plugins/forms/widgets/kexidblineedit.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/kexi/plugins/forms/widgets/kexidblineedit.h b/kexi/plugins/forms/widgets/kexidblineedit.h
index 5f0262b2..4457a8d0 100644
--- a/kexi/plugins/forms/widgets/kexidblineedit.h
+++ b/kexi/plugins/forms/widgets/kexidblineedit.h
@@ -22,7 +22,7 @@
#define KexiDBLineEdit_H
#include <klineedit.h>
-#include <qvalidator.h>
+#include <tqvalidator.h>
#include "kexiformdataiteminterface.h"
#include "kexidbtextwidgetinterface.h"
@@ -34,11 +34,11 @@ class KexiDBWidgetContextMenuExtender;
/*! @internal Utility: alter background color to be a blended color
of the background and base (usually lighter gray). Used for read-only mode. */
-void setLighterGrayBackgroundColor(QWidget* widget);
+void setLighterGrayBackgroundColor(TQWidget* widget);
//! @short Line edit widget for Kexi forms
/*! Handles many data types. User input is validated by using validators
- and/or input masks.
+ and/or input tqmasks.
*/
class KEXIFORMUTILS_EXPORT KexiDBLineEdit :
public KLineEdit,
@@ -47,18 +47,19 @@ class KEXIFORMUTILS_EXPORT KexiDBLineEdit :
public KexiSubwidgetInterface
{
Q_OBJECT
- Q_PROPERTY(QString dataSource READ dataSource WRITE setDataSource DESIGNABLE true)
- Q_PROPERTY(QCString dataSourceMimeType READ dataSourceMimeType WRITE setDataSourceMimeType DESIGNABLE true)
- Q_OVERRIDE(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_OVERRIDE(bool readOnly READ isReadOnly WRITE setReadOnly DESIGNABLE true)
public:
- KexiDBLineEdit(QWidget *parent, const char *name=0);
+ KexiDBLineEdit(TQWidget *tqparent, const char *name=0);
virtual ~KexiDBLineEdit();
- 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.
@@ -80,10 +81,10 @@ class KEXIFORMUTILS_EXPORT KexiDBLineEdit :
is displayed in a special way. Used by KexiFormDataProvider::fillDataItems().
\a widget is equal to 'this'.
Reimplemented after KexiFormDataItemInterface. */
- virtual void setDisplayDefaultValue(QWidget* widget, bool displayDefaultValue);
+ virtual void setDisplayDefaultValue(TQWidget* widget, bool displayDefaultValue);
/*! \return the view widget of this item, e.g. line edit widget. */
- virtual QWidget* widget();
+ virtual TQWidget* widget();
virtual bool cursorAtStart();
virtual bool cursorAtEnd();
@@ -94,14 +95,14 @@ class KEXIFORMUTILS_EXPORT KexiDBLineEdit :
/*! Handles action having standard name \a actionName.
Action could be: "edit_copy", "edit_paste", etc.
Reimplemented after KexiDataItemChangesListener. */
- virtual void handleAction(const QString& actionName);
+ virtual void handleAction(const TQString& actionName);
/*! Called by top-level form on key press event to consume widget-specific shortcuts. */
- virtual bool keyPressed(QKeyEvent *ke);
+ virtual bool keyPressed(TQKeyEvent *ke);
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 readOnly );
//! Reimplemented, so "undo" means the same as "cancelEditor" action
@@ -117,12 +118,12 @@ class KEXIFORMUTILS_EXPORT KexiDBLineEdit :
virtual void selectAll();
protected slots:
- void slotTextChanged(const QString&);
+ void slotTextChanged(const TQString&);
protected:
- virtual void paintEvent ( QPaintEvent * );
- virtual void setValueInternal(const QVariant& add, bool removeOld);
- virtual bool event ( QEvent * );
+ virtual void paintEvent ( TQPaintEvent * );
+ virtual void setValueInternal(const TQVariant& add, bool removeOld);
+ virtual bool event ( TQEvent * );
#if 0
//moved to KexiTextFormatter
@@ -135,7 +136,7 @@ class KEXIFORMUTILS_EXPORT KexiDBLineEdit :
}
#endif
- virtual QPopupMenu * createPopupMenu();
+ virtual TQPopupMenu * createPopupMenu();
//! Implemented for KexiSubwidgetInterface
virtual bool appendStretchRequired(KexiDBAutoField* autoField) const;
@@ -151,10 +152,10 @@ class KEXIFORMUTILS_EXPORT KexiDBLineEdit :
KexiTextFormatter m_textFormatter;
//! Used for read only flag to disable editing
- QGuardedPtr<const QValidator> m_readOnlyValidator;
+ TQGuardedPtr<const TQValidator> m_readOnlyValidator;
//! Used to remember the previous validator used forf r/w mode, after setting the read only flag
- QGuardedPtr<const QValidator> m_readWriteValidator;
+ TQGuardedPtr<const TQValidator> m_readWriteValidator;
//! Used for extending context menu
KexiDBWidgetContextMenuExtender m_menuExtender;