diff options
Diffstat (limited to 'doc/tqdict.doc')
-rw-r--r-- | doc/tqdict.doc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/tqdict.doc b/doc/tqdict.doc index 6b8823ff9..0dffb2032 100644 --- a/doc/tqdict.doc +++ b/doc/tqdict.doc @@ -112,14 +112,14 @@ Example #1: \code - TQDict<QLineEdit> fields; // TQString keys, QLineEdit* values - fields.insert( "forename", new QLineEdit( this ) ); - fields.insert( "surname", new QLineEdit( this ) ); + TQDict<TQLineEdit> fields; // TQString keys, TQLineEdit* values + fields.insert( "forename", new TQLineEdit( this ) ); + fields.insert( "surname", new TQLineEdit( this ) ); fields["forename"]->setText( "Homer" ); fields["surname"]->setText( "Simpson" ); - TQDictIterator<QLineEdit> it( fields ); // See TQDictIterator + TQDictIterator<TQLineEdit> it( fields ); // See TQDictIterator for( ; it.current(); ++it ) cout << it.currentKey() << ": " << it.current()->text() << endl; cout << endl; @@ -433,16 +433,16 @@ Example: \code - TQDict<QLineEdit> fields; - fields.insert( "forename", new QLineEdit( this ) ); - fields.insert( "surname", new QLineEdit( this ) ); - fields.insert( "age", new QLineEdit( this ) ); + TQDict<TQLineEdit> fields; + fields.insert( "forename", new TQLineEdit( this ) ); + fields.insert( "surname", new TQLineEdit( this ) ); + fields.insert( "age", new TQLineEdit( this ) ); fields["forename"]->setText( "Homer" ); fields["surname"]->setText( "Simpson" ); fields["age"]->setText( "45" ); - TQDictIterator<QLineEdit> it( fields ); + TQDictIterator<TQLineEdit> it( fields ); for( ; it.current(); ++it ) cout << it.currentKey() << ": " << it.current()->text() << endl; cout << endl; |