summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/kexiformdataiteminterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/forms/kexiformdataiteminterface.h')
-rw-r--r--kexi/plugins/forms/kexiformdataiteminterface.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/kexi/plugins/forms/kexiformdataiteminterface.h b/kexi/plugins/forms/kexiformdataiteminterface.h
index 99d20db4..1cb7a11f 100644
--- a/kexi/plugins/forms/kexiformdataiteminterface.h
+++ b/kexi/plugins/forms/kexiformdataiteminterface.h
@@ -22,7 +22,7 @@
#include <widget/utils/kexidisplayutils.h>
#include <kexidataiteminterface.h>
-#include <qwidget.h>
+#include <tqwidget.h>
namespace KexiDB {
class Field;
@@ -37,22 +37,22 @@ class KEXIFORMUTILS_EXPORT KexiFormDataItemInterface : public KexiDataItemInterf
//! \return the name of the data source for this widget.
//! Data source usually means here a table or query, a field name or an expression.
- inline QString dataSource() const { return m_dataSource; }
+ inline TQString dataSource() const { return m_dataSource; }
//! Sets the name of the data source for this widget.
//! Data source usually means here a table or query or field name name.
- inline void setDataSource(const QString &ds) { m_dataSource = ds; }
+ inline void setDataSource(const TQString &ds) { m_dataSource = ds; }
/*! \return the mime type of the data source for this widget.
Data source mime type means here types like "kexi/table" or "kexi/query"
in.the data source is set to object (as within form or subform) or is empty
if the data source is set to table field or query column. */
- inline QCString dataSourceMimeType() const { return m_dataSourceMimeType; }
+ inline TQCString dataSourceMimeType() const { return m_dataSourceMimeType; }
/*! Sets the mime type of the data source for this widget.
Data source usually means here a "kexi/table" or "kexi/query".
@see dataSourceMimeType() */
- inline void setDataSourceMimeType(const QCString &ds) { m_dataSourceMimeType = ds; }
+ inline void setDataSourceMimeType(const TQCString &ds) { m_dataSourceMimeType = ds; }
/*! If \a displayDefaultValue is true, the value set by KexiDataItemInterface::setValue()
is displayed in a special way. Used by KexiFormDataProvider::fillDataItems().
@@ -60,14 +60,14 @@ class KEXIFORMUTILS_EXPORT KexiFormDataItemInterface : public KexiDataItemInterf
You can reimplement this in the widget. Always call the superclass' implementation.
setDisplayDefaultValue(.., false) is called in KexiFormScrollView::valueChanged()
as a response on data change performed by user. */
- virtual void setDisplayDefaultValue(QWidget* widget, bool displayDefaultValue);
+ virtual void setDisplayDefaultValue(TQWidget* widget, bool displayDefaultValue);
/*! \return true if default value is displayed for this item. */
virtual bool hasDisplayedDefaultValue() const { return m_displayDefaultValue; }
- /*! Convenience function: casts this item to a QWidget.
- Can return 0 if the item is not a QWidget-derived object. */
- virtual QWidget* widget() { return dynamic_cast<QWidget*>(this); }
+ /*! Convenience function: casts this item to a TQWidget.
+ Can return 0 if the item is not a TQWidget-derived object. */
+ virtual TQWidget* widget() { return dynamic_cast<TQWidget*>(this); }
/*! Sets 'invalid' state, e.g. a text editor widget should display
text \a displayText and become read only to prevent entering data,
@@ -76,7 +76,7 @@ class KEXIFORMUTILS_EXPORT KexiFormDataItemInterface : public KexiDataItemInterf
Note: that even widgets that usualy do not display texts (e.g. pixmaps)
should display \a displayText too.
*/
- virtual void setInvalidState( const QString& displayText ) = 0;
+ virtual void setInvalidState( const TQString& displayText ) = 0;
/*! Changes 'read only' flag, for this widget.
Typically this flag can be passed to a widget itself,
@@ -118,7 +118,7 @@ class KEXIFORMUTILS_EXPORT KexiFormDataItemInterface : public KexiDataItemInterf
virtual void undoChanges();
/* Cancels editing of the widget's data. This method just looks for
- the (grand)parent KexiFormScrollView object and calls
+ the (grand)tqparent KexiFormScrollView object and calls
KexiFormScrollView::cancelEditor(). */
void cancelEditor();
@@ -129,11 +129,11 @@ class KEXIFORMUTILS_EXPORT KexiFormDataItemInterface : public KexiDataItemInterf
\return true if \a ke should be accepted by the widget item.
This method is used e.g. in KexiDBImageBox for Key_Escape to if the popup is visible,
so the key press won't be consumed to perform "cancel editing". */
- virtual bool keyPressed(QKeyEvent *ke) { Q_UNUSED(ke); return false; };
+ virtual bool keyPressed(TQKeyEvent *ke) { Q_UNUSED(ke); return false; };
protected:
- QString m_dataSource;
- QCString m_dataSourceMimeType;
+ TQString m_dataSource;
+ TQCString m_dataSourceMimeType;
KexiDB::QueryColumnInfo* m_columnInfo;
KexiDisplayUtils::DisplayParameters *m_displayParametersForEnteredValue; //!< used in setDisplayDefaultValue()
KexiDisplayUtils::DisplayParameters *m_displayParametersForDefaultValue; //!< used in setDisplayDefaultValue()