summaryrefslogtreecommitdiffstats
path: root/doc/html/customlayout.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 12:20:38 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 12:20:38 +0900
commit0881ed5059c46ce73e8241e6260b82b92f6d0e55 (patch)
tree6d1d4883cc07ad22b11017d0714d4c26e1ce1b94 /doc/html/customlayout.html
parent1f0ce8533cc837aa2d4155b5fc17d2004bed0197 (diff)
downloadtqt3-0881ed5059c46ce73e8241e6260b82b92f6d0e55.tar.gz
tqt3-0881ed5059c46ce73e8241e6260b82b92f6d0e55.zip
Rename ptr nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/customlayout.html')
-rw-r--r--doc/html/customlayout.html28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/customlayout.html b/doc/html/customlayout.html
index a9bcfc34c..da82fa892 100644
--- a/doc/html/customlayout.html
+++ b/doc/html/customlayout.html
@@ -40,7 +40,7 @@ by the Java layout manager of the same name. It lays out the items
<ul>
<li> A data structure to store the items handled by the layout. Each
item is a <a href="qlayoutitem.html">TQLayoutItem</a>. We will use a
-<a href="ntqptrlist.html">TQPtrList</a> in this example.
+<a href="tqptrlist.html">TQPtrList</a> in this example.
<li> <a href="ntqlayout.html#addItem">addItem()</a>, how to add items to
the layout.
<li> <a href="ntqlayout.html#setGeometry">setGeometry()</a>, how to perform
@@ -58,7 +58,7 @@ the layout.
#define CARD_H
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
-#include &lt;<a href="qptrlist-h.html">ntqptrlist.h</a>&gt;
+#include &lt;<a href="tqptrlist-h.html">tqptrlist.h</a>&gt;
class CardLayout : public <a href="ntqlayout.html">TQLayout</a>
{
@@ -78,7 +78,7 @@ public:
void setGeometry(const <a href="ntqrect.html">TQRect</a> &amp;rect);
private:
- <a href="ntqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; list;
+ <a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; list;
};
#endif
@@ -105,21 +105,21 @@ constructor. In our example we do not need a destructor.
class CardLayoutIterator : public <a href="qglayoutiterator.html">TQGLayoutIterator</a>
{
public:
- CardLayoutIterator( <a href="ntqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *l )
+ CardLayoutIterator( <a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *l )
: idx( 0 ), list( l ) {}
<a href="qlayoutitem.html">TQLayoutItem</a> *current()
- { return idx &lt; int(list-&gt;<a href="ntqptrlist.html#count">count</a>()) ? list-&gt;<a href="ntqptrlist.html#at">at</a>(idx) : 0; }
+ { return idx &lt; int(list-&gt;<a href="tqptrlist.html#count">count</a>()) ? list-&gt;<a href="tqptrlist.html#at">at</a>(idx) : 0; }
<a href="qlayoutitem.html">TQLayoutItem</a> *next()
{ idx++; return current(); }
<a href="qlayoutitem.html">TQLayoutItem</a> *takeCurrent()
- { return list-&gt;<a href="ntqptrlist.html#take">take</a>( idx ); }
+ { return list-&gt;<a href="tqptrlist.html#take">take</a>( idx ); }
private:
int idx;
- <a href="ntqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *list;
+ <a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *list;
};
</pre>
@@ -164,8 +164,8 @@ void CardLayout::setGeometry( const <a href="ntqrect.html">TQRect</a> &amp;rect
{
TQLayout::<a href="ntqlayout.html#setGeometry">setGeometry</a>( rect );
- <a href="qptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it( list );
- if (it.<a href="qptrlistiterator.html#count">count</a>() == 0)
+ <a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it( list );
+ if (it.<a href="tqptrlistiterator.html#count">count</a>() == 0)
return;
<a href="qlayoutitem.html">TQLayoutItem</a> *item;
@@ -175,7 +175,7 @@ void CardLayout::setGeometry( const <a href="ntqrect.html">TQRect</a> &amp;rect
int w = rect.<a href="ntqrect.html#width">width</a>() - ( list.count() - 1 ) * spacing();
int h = rect.<a href="ntqrect.html#height">height</a>() - ( list.count() - 1 ) * spacing();
- while ( (item = it.<a href="qptrlistiterator.html#current">current</a>()) != 0 ) {
+ while ( (item = it.<a href="tqptrlistiterator.html#current">current</a>()) != 0 ) {
++it;
<a href="ntqrect.html">TQRect</a> geom( rect.<a href="ntqrect.html#x">x</a>() + i * spacing(), rect.<a href="ntqrect.html#y">y</a>() + i * spacing(),
w, h );
@@ -195,9 +195,9 @@ TQSize CardLayout::sizeHint() const
int n = list.count();
if ( n &gt; 0 )
s = TQSize( 100, 70 ); // start with a nice default size
- <a href="qptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it( list );
+ <a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it( list );
<a href="qlayoutitem.html">TQLayoutItem</a> *item;
- while ( (item = it.<a href="qptrlistiterator.html#current">current</a>()) != 0 ) {
+ while ( (item = it.<a href="tqptrlistiterator.html#current">current</a>()) != 0 ) {
++it;
s = s.<a href="ntqsize.html#expandedTo">expandedTo</a>( item-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>() );
}
@@ -208,9 +208,9 @@ TQSize CardLayout::minimumSize() const
{
<a href="ntqsize.html">TQSize</a> s( 0, 0 );
int n = list.count();
- <a href="qptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it( list );
+ <a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it( list );
<a href="qlayoutitem.html">TQLayoutItem</a> *item;
- while ( (item = it.<a href="qptrlistiterator.html#current">current</a>()) != 0 ) {
+ while ( (item = it.<a href="tqptrlistiterator.html#current">current</a>()) != 0 ) {
++it;
s = s.<a href="ntqsize.html#expandedTo">expandedTo</a>( item-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>() );
}