diff options
Diffstat (limited to 'doc/man/man3/tqsqlpropertymap.3qt')
-rw-r--r-- | doc/man/man3/tqsqlpropertymap.3qt | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/doc/man/man3/tqsqlpropertymap.3qt b/doc/man/man3/tqsqlpropertymap.3qt index 3857f1303..ec88742a6 100644 --- a/doc/man/man3/tqsqlpropertymap.3qt +++ b/doc/man/man3/tqsqlpropertymap.3qt @@ -1,5 +1,5 @@ '\" t -.TH QSqlPropertyMap 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQSqlPropertyMap 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,9 +7,9 @@ .ad l .nh .SH NAME -QSqlPropertyMap \- Used to map widgets to SQL fields +TQSqlPropertyMap \- Used to map widgets to SQL fields .SH SYNOPSIS -\fC#include <ntqsqlpropertymap.h>\fR +\fC#include <tqsqlpropertymap.h>\fR .PP .SS "Public Members" .in +1c @@ -17,7 +17,7 @@ QSqlPropertyMap \- Used to map widgets to SQL fields .BI "\fBQSqlPropertyMap\fR ()" .br .ti -1c -.BI "virtual \fB~QSqlPropertyMap\fR ()" +.BI "virtual \fB~TQSqlPropertyMap\fR ()" .br .ti -1c .BI "QVariant \fBproperty\fR ( TQWidget * widget )" @@ -35,35 +35,35 @@ QSqlPropertyMap \- Used to map widgets to SQL fields .SS "Static Public Members" .in +1c .ti -1c -.BI "QSqlPropertyMap * \fBdefaultMap\fR ()" +.BI "TQSqlPropertyMap * \fBdefaultMap\fR ()" .br .ti -1c -.BI "void \fBinstallDefaultMap\fR ( QSqlPropertyMap * map )" +.BI "void \fBinstallDefaultMap\fR ( TQSqlPropertyMap * map )" .br .in -1c .SH DESCRIPTION -The QSqlPropertyMap class is used to map widgets to SQL fields. +The TQSqlPropertyMap class is used to map widgets to SQL fields. .PP The SQL module uses TQt object properties to insert and extract values from editor widgets. .PP This class is used to map editors to SQL fields. This works by associating SQL editor class names to the properties used to insert and extract values to/from the editor. .PP -For example, a QLineEdit can be used to edit text strings and other data types in QDataTables or QSqlForms. Several properties are defined in QLineEdit, but only the \fItext\fR property is used to insert and extract text from a QLineEdit. Both QDataTable and QSqlForm use the global QSqlPropertyMap for inserting and extracting values to and from an editor widget. The global property map defines several common widgets and properties that are suitable for many applications. You can add and remove widget properties to suit your specific needs. +For example, a QLineEdit can be used to edit text strings and other data types in TQDataTables or TQSqlForms. Several properties are defined in QLineEdit, but only the \fItext\fR property is used to insert and extract text from a QLineEdit. Both TQDataTable and TQSqlForm use the global TQSqlPropertyMap for inserting and extracting values to and from an editor widget. The global property map defines several common widgets and properties that are suitable for many applications. You can add and remove widget properties to suit your specific needs. .PP -If you want to use custom editors with your QDataTable or QSqlForm, you must install your own QSqlPropertyMap for that table or form. Example: +If you want to use custom editors with your TQDataTable or TQSqlForm, you must install your own TQSqlPropertyMap for that table or form. Example: .PP .nf .br - QSqlPropertyMap *myMap = new QSqlPropertyMap(); + TQSqlPropertyMap *myMap = new TQSqlPropertyMap(); .br - QSqlForm *myForm = new QSqlForm( this ); + TQSqlForm *myForm = new TQSqlForm( this ); .br MyEditor myEditor( this ); .br .br - // Set the QSqlForm's record buffer to the update buffer of + // Set the TQSqlForm's record buffer to the update buffer of .br - // a pre-existing QSqlCursor called 'cur'. + // a pre-existing TQSqlCursor called 'cur'. .br myForm->setRecord( cur->primeUpdate() ); .br @@ -101,25 +101,25 @@ If you want to use custom editors with your QDataTable or QSqlForm, you must ins .br .fi .PP -You can also replace the global QSqlPropertyMap that is used by default. (Bear in mind that QSqlPropertyMap takes ownership of the new default map.) +You can also replace the global TQSqlPropertyMap that is used by default. (Bear in mind that TQSqlPropertyMap takes ownership of the new default map.) .PP .nf .br - QSqlPropertyMap *myMap = new QSqlPropertyMap; + TQSqlPropertyMap *myMap = new TQSqlPropertyMap; .br .br myMap->insert( "MyEditor", "content" ); .br - QSqlPropertyMap::installDefaultMap( myMap ); + TQSqlPropertyMap::installDefaultMap( myMap ); .br ... .br .fi .PP -See also QDataTable, QSqlForm, QSqlEditorFactory, and Database Classes. +See also TQDataTable, TQSqlForm, TQSqlEditorFactory, and Database Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QSqlPropertyMap::QSqlPropertyMap ()" -Constructs a QSqlPropertyMap. +.SH "TQSqlPropertyMap::TQSqlPropertyMap ()" +Constructs a TQSqlPropertyMap. .PP The default property mappings used by TQt widgets are: <center>.nf .TS @@ -127,27 +127,27 @@ l - l. Widgets Property QCheckBox, QRadioButton checked QComboBox, QListBox curr .TE .fi </center> -.SH "QSqlPropertyMap::~QSqlPropertyMap ()\fC [virtual]\fR" -Destroys the QSqlPropertyMap. +.SH "TQSqlPropertyMap::~TQSqlPropertyMap ()\fC [virtual]\fR" +Destroys the TQSqlPropertyMap. .PP -Note that if the QSqlPropertyMap is installed with installPropertyMap() the object it was installed into, e.g. the QSqlForm, takes ownership and will delete the QSqlPropertyMap when necessary. -.SH "QSqlPropertyMap * QSqlPropertyMap::defaultMap ()\fC [static]\fR" -Returns the application global QSqlPropertyMap. -.SH "void QSqlPropertyMap::insert ( const TQString & classname, const TQString & property )" +Note that if the TQSqlPropertyMap is installed with installPropertyMap() the object it was installed into, e.g. the TQSqlForm, takes ownership and will delete the TQSqlPropertyMap when necessary. +.SH "TQSqlPropertyMap * TQSqlPropertyMap::defaultMap ()\fC [static]\fR" +Returns the application global TQSqlPropertyMap. +.SH "void TQSqlPropertyMap::insert ( const TQString & classname, const TQString & property )" Insert a new classname/property pair, which is used for custom SQL field editors. There \fImust\fR be a \fCTQ_PROPERTY\fR clause in the \fIclassname\fR class declaration for the \fIproperty\fR. .PP Example: sql/overview/custom1/main.cpp. -.SH "void QSqlPropertyMap::installDefaultMap ( QSqlPropertyMap * map )\fC [static]\fR" -Replaces the global default property map with \fImap\fR. All QDataTable and QSqlForm instantiations will use this new map for inserting and extracting values to and from editors. \fIQSqlPropertyMap takes ownership of \a map, and destroys it when it is no longer needed.\fR -.SH "QVariant QSqlPropertyMap::property ( TQWidget * widget )" +.SH "void TQSqlPropertyMap::installDefaultMap ( TQSqlPropertyMap * map )\fC [static]\fR" +Replaces the global default property map with \fImap\fR. All TQDataTable and TQSqlForm instantiations will use this new map for inserting and extracting values to and from editors. \fIQSqlPropertyMap takes ownership of \a map, and destroys it when it is no longer needed.\fR +.SH "QVariant TQSqlPropertyMap::property ( TQWidget * widget )" Returns the mapped property of \fIwidget\fR as a QVariant. -.SH "void QSqlPropertyMap::remove ( const TQString & classname )" +.SH "void TQSqlPropertyMap::remove ( const TQString & classname )" Removes \fIclassname\fR from the map. -.SH "void QSqlPropertyMap::setProperty ( TQWidget * widget, const QVariant & value )\fC [virtual]\fR" +.SH "void TQSqlPropertyMap::setProperty ( TQWidget * widget, const QVariant & value )\fC [virtual]\fR" Sets the property of \fIwidget\fR to \fIvalue\fR. .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqsqlpropertymap.html +.BR http://doc.trolltech.com/tqsqlpropertymap.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |