diff options
Diffstat (limited to 'tqtinterface/qt4/src/sql/tqeditorfactory.cpp')
-rw-r--r-- | tqtinterface/qt4/src/sql/tqeditorfactory.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tqtinterface/qt4/src/sql/tqeditorfactory.cpp b/tqtinterface/qt4/src/sql/tqeditorfactory.cpp index 2d02088..7c6e962 100644 --- a/tqtinterface/qt4/src/sql/tqeditorfactory.cpp +++ b/tqtinterface/qt4/src/sql/tqeditorfactory.cpp @@ -69,11 +69,11 @@ */ /*! - Constructs an editor factory with tqparent \a tqparent, called \a name. + Constructs an editor factory with parent \a parent, called \a name. */ -TQEditorFactory::TQEditorFactory ( TQObject * tqparent, const char * name ) - : TQObject( tqparent, name ) +TQEditorFactory::TQEditorFactory ( TQObject * parent, const char * name ) + : TQObject( parent, name ) { } @@ -124,11 +124,11 @@ void TQEditorFactory::installDefaultFactory( TQEditorFactory * factory ) /*! Creates and returns the appropriate editor for the TQVariant \a v. - If the TQVariant is invalid, 0 is returned. The \a tqparent is passed + If the TQVariant is invalid, 0 is returned. The \a parent is passed to the appropriate editor's constructor. */ -TQWidget * TQEditorFactory::createEditor( TQWidget * tqparent, const TQVariant & v ) +TQWidget * TQEditorFactory::createEditor( TQWidget * parent, const TQVariant & v ) { TQWidget * w = 0; switch( v.type() ){ @@ -136,34 +136,34 @@ TQWidget * TQEditorFactory::createEditor( TQWidget * tqparent, const TQVariant & 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, 999999, 1, tqparent, "qt_editor_spinbox" ); + w = new TQSpinBox( 0, 999999, 1, parent, "qt_editor_spinbox" ); break; case TQVariant::Int: - w = new TQSpinBox( -999999, 999999, 1, tqparent, "qt_editor_int" ); + w = new TQSpinBox( -999999, 999999, 1, parent, "qt_editor_int" ); break; 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: @@ -184,7 +184,7 @@ TQWidget * TQEditorFactory::createEditor( TQWidget * tqparent, const TQVariant & case TQVariant::SizePolicy: case TQVariant::ByteArray: default: - w = new TQWidget( tqparent, "qt_editor_default" ); + w = new TQWidget( parent, "qt_editor_default" ); break; } return w; |