diff options
Diffstat (limited to 'tqtinterface/qt4/src/sql/tqsqleditorfactory.cpp')
-rw-r--r-- | tqtinterface/qt4/src/sql/tqsqleditorfactory.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tqtinterface/qt4/src/sql/tqsqleditorfactory.cpp b/tqtinterface/qt4/src/sql/tqsqleditorfactory.cpp index 0c6b16f..b7201bb 100644 --- a/tqtinterface/qt4/src/sql/tqsqleditorfactory.cpp +++ b/tqtinterface/qt4/src/sql/tqsqleditorfactory.cpp @@ -73,12 +73,12 @@ /*! - Constructs a SQL editor factory with tqparent \a tqparent, called \a + Constructs a SQL editor factory with parent \a parent, called \a name. */ -TQSqlEditorFactory::TQSqlEditorFactory ( TQObject * tqparent, const char * name ) - : TQEditorFactory( tqparent, name ) +TQSqlEditorFactory::TQSqlEditorFactory ( TQObject * parent, const char * name ) + : TQEditorFactory( parent, name ) { } @@ -132,14 +132,14 @@ void TQSqlEditorFactory::installDefaultFactory( TQSqlEditorFactory * factory ) Creates and returns the appropriate editor widget for the TQVariant \a variant. - The widget that is returned has the tqparent \a tqparent (which may be + The widget that is returned has the parent \a parent (which may be zero). If \a variant is invalid, 0 is returned. */ -TQWidget * TQSqlEditorFactory::createEditor( TQWidget * tqparent, +TQWidget * TQSqlEditorFactory::createEditor( TQWidget * parent, const TQVariant & variant ) { - return TQEditorFactory::createEditor( tqparent, variant ); + return TQEditorFactory::createEditor( parent, variant ); } /*! @@ -149,7 +149,7 @@ TQWidget * TQSqlEditorFactory::createEditor( TQWidget * tqparent, field. */ -TQWidget * TQSqlEditorFactory::createEditor( TQWidget * tqparent, +TQWidget * TQSqlEditorFactory::createEditor( TQWidget * parent, const TQSqlField * field ) { if ( !field ) { @@ -162,36 +162,36 @@ TQWidget * TQSqlEditorFactory::createEditor( TQWidget * tqparent, w = 0; break; case TQVariant::Bool: - w = new TQComboBox( tqparent, "qt_editor_bool" ); + w = new TQComboBox( parent, "qt_editor_bool" ); ((TQComboBox *) w)->insertItem( "False" ); ((TQComboBox *) w)->insertItem( "True" ); break; case TQVariant::UInt: - w = new TQSpinBox( 0, 2147483647, 1, tqparent, "qt_editor_spinbox" ); + w = new TQSpinBox( 0, 2147483647, 1, parent, "qt_editor_spinbox" ); break; case TQVariant::Int: - w = new TQSpinBox( -2147483647, 2147483647, 1, tqparent, "qt_editor_int" ); + w = new TQSpinBox( -2147483647, 2147483647, 1, parent, "qt_editor_int" ); break; case TQVariant::LongLong: case TQVariant::ULongLong: case TQVariant::String: case TQVariant::CString: case TQVariant::Double: - w = new TQLineEdit( tqparent, "qt_editor_double" ); + w = new TQLineEdit( parent, "qt_editor_double" ); ((TQLineEdit*)w)->setFrame( FALSE ); break; case TQVariant::Date: - w = new TQDateEdit( tqparent, "qt_editor_date" ); + w = new TQDateEdit( parent, "qt_editor_date" ); break; case TQVariant::Time: - w = new TQTimeEdit( tqparent, "qt_editor_time" ); + w = new TQTimeEdit( parent, "qt_editor_time" ); break; case TQVariant::DateTime: - w = new TQDateTimeEdit( tqparent, "qt_editor_datetime" ); + w = new TQDateTimeEdit( parent, "qt_editor_datetime" ); break; #ifndef TQT_NO_LABEL case TQVariant::Pixmap: - w = new TQLabel( tqparent, "qt_editor_pixmap" ); + w = new TQLabel( parent, "qt_editor_pixmap" ); break; #endif case TQVariant::Palette: @@ -212,7 +212,7 @@ TQWidget * TQSqlEditorFactory::createEditor( TQWidget * tqparent, case TQVariant::SizePolicy: case TQVariant::ByteArray: default: - w = new TQWidget( tqparent, "qt_editor_default" ); + w = new TQWidget( parent, "qt_editor_default" ); break; } return w; |