summaryrefslogtreecommitdiffstats
path: root/doc/html/helpsystem-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/helpsystem-example.html')
-rw-r--r--doc/html/helpsystem-example.html40
1 files changed, 20 insertions, 20 deletions
diff --git a/doc/html/helpsystem-example.html b/doc/html/helpsystem-example.html
index 991d65b69..5afaeebfd 100644
--- a/doc/html/helpsystem-example.html
+++ b/doc/html/helpsystem-example.html
@@ -53,7 +53,7 @@ a <a href="ntqtable.html">TQTable</a> as the central widget.
HeaderToolTip( <a href="ntqheader.html">TQHeader</a> *header, TQToolTipGroup *group = 0 );
protected:
- void maybeTip ( const <a href="ntqpoint.html">TQPoint</a> &amp;p );
+ void maybeTip ( const <a href="tqpoint.html">TQPoint</a> &amp;p );
};
</pre>
<p> Two TQToolTip subclasses implement dynamic tooltips for
@@ -70,7 +70,7 @@ second argument to show tooltips in, for example a statusbar.
TableToolTip( <a href="ntqtable.html">TQTable</a>* table, TQToolTipGroup *group = 0 );
protected:
- void maybeTip( const <a href="ntqpoint.html">TQPoint</a> &amp;p );
+ void maybeTip( const <a href="tqpoint.html">TQPoint</a> &amp;p );
private:
<a href="ntqtable.html">TQTable</a> *table;
@@ -87,16 +87,16 @@ as a member for easier access of the TQTable object later on.
</pre>
<p> The HeaderToolTip constructor propagates the parameters
to the <a href="tqtooltip.html">TQToolTip</a> constructor.
-<pre> void HeaderToolTip::<a href="tqtooltip.html#maybeTip">maybeTip</a> ( const <a href="ntqpoint.html">TQPoint</a>&amp; p )
+<pre> void HeaderToolTip::<a href="tqtooltip.html#maybeTip">maybeTip</a> ( const <a href="tqpoint.html">TQPoint</a>&amp; p )
{
<a href="ntqheader.html">TQHeader</a> *header = (TQHeader*)<a href="tqtooltip.html#parentWidget">parentWidget</a>();
int section = 0;
<a name="x2676"></a> if ( header-&gt;<a href="ntqheader.html#orientation">orientation</a>() == Horizontal )
- <a name="x2677"></a><a name="x2675"></a> section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( header-&gt;<a href="ntqheader.html#offset">offset</a>() + p.<a href="ntqpoint.html#x">x</a>() );
+ <a name="x2677"></a><a name="x2675"></a> section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( header-&gt;<a href="ntqheader.html#offset">offset</a>() + p.<a href="tqpoint.html#x">x</a>() );
else
- section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( header-&gt;<a href="ntqheader.html#offset">offset</a>() + p.<a href="ntqpoint.html#y">y</a>() );
+ section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( header-&gt;<a href="ntqheader.html#offset">offset</a>() + p.<a href="tqpoint.html#y">y</a>() );
<a name="x2674"></a> <a href="tqstring.html">TQString</a> tipString = header-&gt;<a href="ntqheader.html#label">label</a>( section );
<a name="x2678"></a> <a href="tqtooltip.html#tip">tip</a>( header-&gt;<a href="ntqheader.html#sectionRect">sectionRect</a>( section ), tipString, "This is a section in a header" );
@@ -117,22 +117,22 @@ happens on TQTable's viewport() . The TableToolTip
constructor passes the viewport() and the tooltip
group to the <a href="tqtooltip.html">TQToolTip</a> constructor, and initializes the table
member with the TQTable pointer itself.
-<pre> <a name="x2684"></a>void TableToolTip::<a href="tqtooltip.html#maybeTip">maybeTip</a> ( const <a href="ntqpoint.html">TQPoint</a> &amp;p )
+<pre> <a name="x2684"></a>void TableToolTip::<a href="tqtooltip.html#maybeTip">maybeTip</a> ( const <a href="tqpoint.html">TQPoint</a> &amp;p )
{
- <a href="ntqpoint.html">TQPoint</a> cp = table-&gt;viewportToContents( p );
- <a name="x2680"></a> int row = table-&gt;rowAt( cp.<a href="ntqpoint.html#y">y</a>() );
- <a name="x2679"></a> int col = table-&gt;columnAt( cp.<a href="ntqpoint.html#x">x</a>() );
+ <a href="tqpoint.html">TQPoint</a> cp = table-&gt;viewportToContents( p );
+ <a name="x2680"></a> int row = table-&gt;rowAt( cp.<a href="tqpoint.html#y">y</a>() );
+ <a name="x2679"></a> int col = table-&gt;columnAt( cp.<a href="tqpoint.html#x">x</a>() );
<a href="tqstring.html">TQString</a> tipString = table-&gt;text( row, col );
- <a href="ntqrect.html">TQRect</a> cr = table-&gt;cellGeometry( row, col );
+ <a href="tqrect.html">TQRect</a> cr = table-&gt;cellGeometry( row, col );
</pre>
<p> The implementation of maybeTip() uses the TQTable API
to get information about the cell at the requested position.
The <a href="ntqtable.html">TQTable</a> API expects contents coordinates, and since the
requested point is relative to the viewport we need to translate
the coordinates before we can use TQTable's functions.
-<pre> <a name="x2682"></a><a name="x2681"></a> cr.<a href="ntqrect.html#moveTopLeft">moveTopLeft</a>( table-&gt;contentsToViewport( cr.<a href="ntqrect.html#topLeft">topLeft</a>() ) );
+<pre> <a name="x2682"></a><a name="x2681"></a> cr.<a href="tqrect.html#moveTopLeft">moveTopLeft</a>( table-&gt;contentsToViewport( cr.<a href="tqrect.html#topLeft">topLeft</a>() ) );
<a href="tqtooltip.html#tip">tip</a>( cr, tipString, "This is a cell in a table" );
}
</pre>
@@ -200,7 +200,7 @@ if a hyperlink has been clicked.
public:
HeaderWhatsThis( <a href="ntqheader.html">TQHeader</a> *h );
- <a href="tqstring.html">TQString</a> text( const <a href="ntqpoint.html">TQPoint</a> &amp;p );
+ <a href="tqstring.html">TQString</a> text( const <a href="tqpoint.html">TQPoint</a> &amp;p );
};
</pre>
<p> <pre> class TableWhatsThis : public WhatsThis
@@ -208,7 +208,7 @@ if a hyperlink has been clicked.
public:
TableWhatsThis( <a href="ntqtable.html">TQTable</a> *t );
- <a href="tqstring.html">TQString</a> text( const <a href="ntqpoint.html">TQPoint</a> &amp;p );
+ <a href="tqstring.html">TQString</a> text( const <a href="tqpoint.html">TQPoint</a> &amp;p );
};
</pre>
<p>
@@ -227,7 +227,7 @@ type safety here in the same manner as in the tooltip classes.
</pre>
<p> The HeaderWhatsThis constructor propagates the parameter to the
WhatsThis constructor.
-<pre> TQString HeaderWhatsThis::text( const <a href="ntqpoint.html">TQPoint</a> &amp;p )
+<pre> TQString HeaderWhatsThis::text( const <a href="tqpoint.html">TQPoint</a> &amp;p )
{
<a href="ntqheader.html">TQHeader</a> *header = (TQHeader*)parentWidget();
@@ -235,10 +235,10 @@ WhatsThis constructor.
int section;
if ( header-&gt;<a href="ntqheader.html#orientation">orientation</a>() == TQObject::Horizontal ) {
orient = "horizontal";
- section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( p.<a href="ntqpoint.html#x">x</a>() );
+ section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( p.<a href="tqpoint.html#x">x</a>() );
} else {
orient = "vertical";
- section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( p.<a href="ntqpoint.html#y">y</a>() );
+ section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( p.<a href="tqpoint.html#y">y</a>() );
}
if( section == -1 )
return "This is empty space.";
@@ -261,13 +261,13 @@ a string which states the header's orientation and section.
<p> Since <a href="ntqtable.html">TQTable</a> is a scrollview and has a viewport() which receives
the events, we propagate the table itself and the table's
viewport() to the WhatsThis constructor.
-<pre> TQString TableWhatsThis::text( const <a href="ntqpoint.html">TQPoint</a> &amp;p )
+<pre> TQString TableWhatsThis::text( const <a href="tqpoint.html">TQPoint</a> &amp;p )
{
<a href="ntqtable.html">TQTable</a> *table = (TQTable*)parentWidget();
- <a href="ntqpoint.html">TQPoint</a> cp = table-&gt;<a href="ntqscrollview.html#viewportToContents">viewportToContents</a>( p );
- int row = table-&gt;<a href="ntqtable.html#rowAt">rowAt</a>( cp.<a href="ntqpoint.html#y">y</a>() );
- int col = table-&gt;<a href="ntqtable.html#columnAt">columnAt</a>( cp.<a href="ntqpoint.html#x">x</a>() );
+ <a href="tqpoint.html">TQPoint</a> cp = table-&gt;<a href="ntqscrollview.html#viewportToContents">viewportToContents</a>( p );
+ int row = table-&gt;<a href="ntqtable.html#rowAt">rowAt</a>( cp.<a href="tqpoint.html#y">y</a>() );
+ int col = table-&gt;<a href="ntqtable.html#columnAt">columnAt</a>( cp.<a href="tqpoint.html#x">x</a>() );
if ( row == -1 || col == -1 )
return "This is empty space.";