summaryrefslogtreecommitdiffstats
path: root/doc/html/tqptrdict.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/tqptrdict.html')
-rw-r--r--doc/html/tqptrdict.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/tqptrdict.html b/doc/html/tqptrdict.html
index 5bd2fe8be..8332ded16 100644
--- a/doc/html/tqptrdict.html
+++ b/doc/html/tqptrdict.html
@@ -82,12 +82,12 @@ pointer. Dictionaries provide very fast insertion and lookup.
<pre>
TQPtrDict&lt;char&gt; fields; // void* keys, char* values
- <a href="ntqlineedit.html">TQLineEdit</a> *le1 = new <a href="ntqlineedit.html">TQLineEdit</a>( this );
- le1-&gt;<a href="ntqlineedit.html#setText">setText</a>( "Simpson" );
- <a href="ntqlineedit.html">TQLineEdit</a> *le2 = new <a href="ntqlineedit.html">TQLineEdit</a>( this );
- le2-&gt;<a href="ntqlineedit.html#setText">setText</a>( "Homer" );
- <a href="ntqlineedit.html">TQLineEdit</a> *le3 = new <a href="ntqlineedit.html">TQLineEdit</a>( this );
- le3-&gt;<a href="ntqlineedit.html#setText">setText</a>( "45" );
+ <a href="tqlineedit.html">TQLineEdit</a> *le1 = new <a href="tqlineedit.html">TQLineEdit</a>( this );
+ le1-&gt;<a href="tqlineedit.html#setText">setText</a>( "Simpson" );
+ <a href="tqlineedit.html">TQLineEdit</a> *le2 = new <a href="tqlineedit.html">TQLineEdit</a>( this );
+ le2-&gt;<a href="tqlineedit.html#setText">setText</a>( "Homer" );
+ <a href="tqlineedit.html">TQLineEdit</a> *le3 = new <a href="tqlineedit.html">TQLineEdit</a>( this );
+ le3-&gt;<a href="tqlineedit.html#setText">setText</a>( "45" );
fields.<a href="#insert">insert</a>( le1, "Surname" );
fields.<a href="#insert">insert</a>( le2, "Forename" );
@@ -99,12 +99,12 @@ pointer. Dictionaries provide very fast insertion and lookup.
cout &lt;&lt; endl;
if ( fields[le1] ) // Prints "Surname: Simpson"
- cout &lt;&lt; fields[le1] &lt;&lt; ": " &lt;&lt; le1-&gt;<a href="ntqlineedit.html#text">text</a>() &lt;&lt; endl;
+ cout &lt;&lt; fields[le1] &lt;&lt; ": " &lt;&lt; le1-&gt;<a href="tqlineedit.html#text">text</a>() &lt;&lt; endl;
if ( fields[le2] ) // Prints "Forename: Homer"
- cout &lt;&lt; fields[le2] &lt;&lt; ": " &lt;&lt; le2-&gt;<a href="ntqlineedit.html#text">text</a>() &lt;&lt; endl;
+ cout &lt;&lt; fields[le2] &lt;&lt; ": " &lt;&lt; le2-&gt;<a href="tqlineedit.html#text">text</a>() &lt;&lt; endl;
fields.<a href="#remove">remove</a>( le1 ); // Removes le1 from the dictionary
- cout &lt;&lt; le1-&gt;<a href="ntqlineedit.html#text">text</a>() &lt;&lt; endl; // Prints "Simpson"
+ cout &lt;&lt; le1-&gt;<a href="tqlineedit.html#text">text</a>() &lt;&lt; endl; // Prints "Simpson"
</pre>
In this example we use a dictionary to add an extra property (a