diff options
Diffstat (limited to 'doc/html/ntqvariant.html')
-rw-r--r-- | doc/html/ntqvariant.html | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/html/ntqvariant.html b/doc/html/ntqvariant.html index 4263afaf4..2ba357588 100644 --- a/doc/html/ntqvariant.html +++ b/doc/html/ntqvariant.html @@ -209,7 +209,7 @@ return a reference to the new contents of the variant. v = <a href="#TQVariant">TQVariant</a>("hello"); // The variant now contains a TQCString v = <a href="#TQVariant">TQVariant</a>(tr("hello"));// The variant now contains a TQString int y = v.<a href="#toInt">toInt</a>(); // y = 0 since v cannot be converted to an int - <a href="ntqstring.html">TQString</a> s = v.<a href="#toString">toString</a>(); // s = tr("hello") (see TQObject::tr()) + <a href="tqstring.html">TQString</a> s = v.<a href="#toString">toString</a>(); // s = tr("hello") (see TQObject::tr()) out << v; // Writes a type tag and a TQString to out ... <a href="ntqdatastream.html">TQDataStream</a> in(...); // (opening the previously written stream) @@ -274,9 +274,9 @@ contain. <li><tt>TQVariant::Region</tt> - a <a href="ntqregion.html">TQRegion</a> <li><tt>TQVariant::Size</tt> - a <a href="ntqsize.html">TQSize</a> <li><tt>TQVariant::SizePolicy</tt> - a <a href="ntqsizepolicy.html">TQSizePolicy</a> -<li><tt>TQVariant::String</tt> - a <a href="ntqstring.html">TQString</a> +<li><tt>TQVariant::String</tt> - a <a href="tqstring.html">TQString</a> <li><tt>TQVariant::CString</tt> - a <a href="ntqcstring.html">TQCString</a> -<li><tt>TQVariant::StringList</tt> - a <a href="ntqstringlist.html">TQStringList</a> +<li><tt>TQVariant::StringList</tt> - a <a href="tqstringlist.html">TQStringList</a> <li><tt>TQVariant::Time</tt> - a <a href="qtime.html">TQTime</a> <li><tt>TQVariant::UInt</tt> - an unsigned int </ul><p> Note that TQt's definition of bool depends on the compiler. @@ -312,7 +312,7 @@ is made if the stored data type is <a href="shclass.html#explicitly-shared">expl </h3> Reads the variant from the data stream, <em>s</em>. -<h3 class=fn><a name="TQVariant-4"></a>TQVariant::TQVariant ( const <a href="ntqstring.html">TQString</a> & val ) +<h3 class=fn><a name="TQVariant-4"></a>TQVariant::TQVariant ( const <a href="tqstring.html">TQString</a> & val ) </h3> Constructs a new variant with a string value, <em>val</em>. @@ -329,7 +329,7 @@ Constructs a new variant with a C-string value of <em>val</em> if <em>val</em> is non-null. The variant creates a <a href="shclass.html#deep-copy">deep copy</a> of <em>val</em>. <p> If <em>val</em> is null, the resulting variant has type Invalid. -<h3 class=fn><a name="TQVariant-7"></a>TQVariant::TQVariant ( const <a href="ntqstringlist.html">TQStringList</a> & val ) +<h3 class=fn><a name="TQVariant-7"></a>TQVariant::TQVariant ( const <a href="tqstringlist.html">TQStringList</a> & val ) </h3> Constructs a new variant with a string list value, <em>val</em>. @@ -686,7 +686,7 @@ possible the variant is set to an invalid size. <p> Tries to convert the variant to hold a <a href="ntqsizepolicy.html">TQSizePolicy</a> value. If that fails, the variant is set to an arbitrary (valid) size policy. -<h3 class=fn><a href="ntqstring.html">TQString</a> & <a name="asString"></a>TQVariant::asString () +<h3 class=fn><a href="tqstring.html">TQString</a> & <a name="asString"></a>TQVariant::asString () </h3> <p> Tries to convert the variant to hold a string value. If that is @@ -694,16 +694,16 @@ not possible the variant is set to an empty string. <p> Returns a reference to the stored string. <p> <p>See also <a href="#toString">toString</a>(). -<h3 class=fn><a href="ntqstringlist.html">TQStringList</a> & <a name="asStringList"></a>TQVariant::asStringList () +<h3 class=fn><a href="tqstringlist.html">TQStringList</a> & <a name="asStringList"></a>TQVariant::asStringList () </h3> -<p> Tries to convert the variant to hold a <a href="ntqstringlist.html">TQStringList</a> value. If that +<p> Tries to convert the variant to hold a <a href="tqstringlist.html">TQStringList</a> value. If that is not possible the variant is set to an empty string list. <p> Returns a reference to the stored string list. <p> Note that if you want to iterate over the list, you should iterate over a copy, e.g. <pre> - <a href="ntqstringlist.html">TQStringList</a> list = myVariant.asStringList(); + <a href="tqstringlist.html">TQStringList</a> list = myVariant.asStringList(); TQStringList::Iterator it = list.<a href="tqvaluelist.html#begin">begin</a>(); while( it != list.<a href="tqvaluelist.html#end">end</a>() ) { myProcessing( *it ); @@ -811,7 +811,7 @@ type is appropriate; otherwise returns a null iterator. <p> Returns the end iterator for the map, if the variant's type is appropriate; otherwise returns a null iterator. -<h3 class=fn><a href="tqmapconstiterator.html">TQMapConstIterator</a><TQString, TQVariant> <a name="mapFind"></a>TQVariant::mapFind ( const <a href="ntqstring.html">TQString</a> & key ) const +<h3 class=fn><a href="tqmapconstiterator.html">TQMapConstIterator</a><TQString, TQVariant> <a name="mapFind"></a>TQVariant::mapFind ( const <a href="tqstring.html">TQString</a> & key ) const </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. @@ -1068,21 +1068,21 @@ Returns the variant as a <a href="ntqsizepolicy.html">TQSizePolicy</a> if the va SizePolicy; otherwise returns an undefined (but legal) size policy. -<h3 class=fn>const <a href="ntqstring.html">TQString</a> <a name="toString"></a>TQVariant::toString () const +<h3 class=fn>const <a href="tqstring.html">TQString</a> <a name="toString"></a>TQVariant::toString () const </h3> -Returns the variant as a <a href="ntqstring.html">TQString</a> if the variant can be cast to -String, otherwise returns <a href="ntqstring.html#TQString-null">TQString::null</a>. +Returns the variant as a <a href="tqstring.html">TQString</a> if the variant can be cast to +String, otherwise returns <a href="tqstring.html#TQString-null">TQString::null</a>. <p> <p>See also <a href="#asString">asString</a>() and <a href="#canCast">canCast</a>(). -<h3 class=fn>const <a href="ntqstringlist.html">TQStringList</a> <a name="toStringList"></a>TQVariant::toStringList () const +<h3 class=fn>const <a href="tqstringlist.html">TQStringList</a> <a name="toStringList"></a>TQVariant::toStringList () const </h3> -Returns the variant as a <a href="ntqstringlist.html">TQStringList</a> if the variant has <a href="#type">type</a>() -StringList or List of a type that can be converted to <a href="ntqstring.html">TQString</a>; +Returns the variant as a <a href="tqstringlist.html">TQStringList</a> if the variant has <a href="#type">type</a>() +StringList or List of a type that can be converted to <a href="tqstring.html">TQString</a>; otherwise returns an empty list. <p> Note that if you want to iterate over the list, you should iterate over a copy, e.g. <pre> - <a href="ntqstringlist.html">TQStringList</a> list = myVariant.toStringList(); + <a href="tqstringlist.html">TQStringList</a> list = myVariant.toStringList(); TQStringList::Iterator it = list.<a href="tqvaluelist.html#begin">begin</a>(); while( it != list.<a href="tqvaluelist.html#end">end</a>() ) { myProcessing( *it ); |