summaryrefslogtreecommitdiffstats
path: root/doc/qmap.doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/qmap.doc')
-rw-r--r--doc/qmap.doc28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/qmap.doc b/doc/qmap.doc
index 2aded365..6f5987ed 100644
--- a/doc/qmap.doc
+++ b/doc/qmap.doc
@@ -68,7 +68,7 @@
contained items.
Some classes cannot be used within a QMap. For example everything
- derived from QObject and thus all classes that implement widgets.
+ derived from TQObject and thus all classes that implement widgets.
Only values can be used in a QMap. To qualify as a value, the
class must provide
@@ -103,18 +103,18 @@
{
public:
Employee(): sn(0) {}
- Employee( const QString& forename, const QString& surname, int salary )
+ Employee( const TQString& forename, const TQString& surname, int salary )
: fn(forename), sn(surname), sal(salary)
{ }
- QString forename() const { return fn; }
- QString surname() const { return sn; }
+ TQString forename() const { return fn; }
+ TQString surname() const { return sn; }
int salary() const { return sal; }
void setSalary( int salary ) { sal = salary; }
private:
- QString fn;
- QString sn;
+ TQString fn;
+ TQString sn;
int sal;
};
@@ -122,7 +122,7 @@
{
QApplication app( argc, argv );
- typedef QMap<QString, Employee> EmployeeMap;
+ typedef QMap<TQString, Employee> EmployeeMap;
EmployeeMap map;
map["JD001"] = Employee("John", "Doe", 50000);
@@ -180,7 +180,7 @@
not use operator[]. The following example illustrates this:
\code
- QMap<QString,QString> map;
+ QMap<TQString,TQString> map;
map["Clinton"] = "Bill";
str << map["Clinton"] << map["Bush"] << endl;
\endcode
@@ -215,7 +215,7 @@
There are a couple of ways of inserting new items into the map.
One uses the insert() method; the other uses operator[]:
\code
- QMap<QString, QString> map;
+ QMap<TQString, TQString> map;
map["Clinton"] = "Bill";
map.insert( "Bush", "George" );
\endcode
@@ -235,9 +235,9 @@
/*! \enum QMap::mapped_type
The map's data type. */
/*! \enum QMap::value_type
- Corresponds to QPair\<key_type, mapped_type\>. */
+ Corresponds to TQPair\<key_type, mapped_type\>. */
/*! \enum QMap::ValueType
- Corresponds to QPair\<key_type, mapped_type\>, TQt style.*/
+ Corresponds to TQPair\<key_type, mapped_type\>, TQt style.*/
/*! \enum QMap::pointer
Pointer to value_type.*/
/*! \enum QMap::const_pointer
@@ -324,7 +324,7 @@
You can use this operator both for reading and writing:
\code
- QMap<QString, QString> map;
+ QMap<TQString, TQString> map;
map["Clinton"] = "Bill";
stream << map["Clinton"];
\endcode
@@ -479,11 +479,11 @@
*/
/*!
- \fn QPair<iterator,bool> QMap::insert( const value_type& x )
+ \fn TQPair<iterator,bool> QMap::insert( const value_type& x )
\overload
- Inserts the (key, value) pair \a x into the map. \a x is a QPair
+ Inserts the (key, value) pair \a x into the map. \a x is a TQPair
whose \c first element is a key to be inserted and whose \c second
element is the associated value to be inserted. Returns a pair
whose \c first element is an iterator pointing to the inserted