summaryrefslogtreecommitdiffstats
path: root/doc/html/checklists-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/checklists-example.html')
-rw-r--r--doc/html/checklists-example.html102
1 files changed, 51 insertions, 51 deletions
diff --git a/doc/html/checklists-example.html b/doc/html/checklists-example.html
index 4260f4f31..510e3c796 100644
--- a/doc/html/checklists-example.html
+++ b/doc/html/checklists-example.html
@@ -50,21 +50,21 @@ checkable items.
#ifndef CHECKLISTS_H
#define CHECKLISTS_H
-#include &lt;<a href="qwidget-h.html">qwidget.h</a>&gt;
+#include &lt;<a href="qwidget-h.html">ntqwidget.h</a>&gt;
class TQListView;
class TQLabel;
-class CheckLists : public <a href="qwidget.html">TQWidget</a>
+class CheckLists : public <a href="ntqwidget.html">TQWidget</a>
{
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a>
public:
- CheckLists( <a href="qwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );
+ CheckLists( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );
protected:
- <a href="qlistview.html">TQListView</a> *lv1, *lv2;
- <a href="qlabel.html">TQLabel</a> *label;
+ <a href="ntqlistview.html">TQListView</a> *lv1, *lv2;
+ <a href="ntqlabel.html">TQLabel</a> *label;
protected slots:
void copy1to2();
@@ -89,13 +89,13 @@ protected slots:
#include "checklists.h"
-#include &lt;<a href="qlistview-h.html">qlistview.h</a>&gt;
-#include &lt;<a href="qvbox-h.html">qvbox.h</a>&gt;
-#include &lt;<a href="qlabel-h.html">qlabel.h</a>&gt;
-#include &lt;<a href="qvaluelist-h.html">qvaluelist.h</a>&gt;
-#include &lt;<a href="qstring-h.html">qstring.h</a>&gt;
-#include &lt;<a href="qpushbutton-h.html">qpushbutton.h</a>&gt;
-#include &lt;<a href="qlayout-h.html">qlayout.h</a>&gt;
+#include &lt;<a href="qlistview-h.html">ntqlistview.h</a>&gt;
+#include &lt;<a href="qvbox-h.html">ntqvbox.h</a>&gt;
+#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
+#include &lt;<a href="qvaluelist-h.html">ntqvaluelist.h</a>&gt;
+#include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
+#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
+#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
/*
* Constructor
@@ -103,37 +103,37 @@ protected slots:
* Create all child widgets of the CheckList Widget
*/
-<a name="f248"></a>CheckLists::CheckLists( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="qwidget.html">TQWidget</a>( parent, name )
+<a name="f248"></a>CheckLists::CheckLists( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="ntqwidget.html">TQWidget</a>( parent, name )
{
<a href="qhboxlayout.html">TQHBoxLayout</a> *lay = new <a href="qhboxlayout.html">TQHBoxLayout</a>( this );
-<a name="x426"></a> lay-&gt;<a href="qlayout.html#setMargin">setMargin</a>( 5 );
+<a name="x426"></a> lay-&gt;<a href="ntqlayout.html#setMargin">setMargin</a>( 5 );
// create a widget which layouts its childs in a column
<a href="qvboxlayout.html">TQVBoxLayout</a> *vbox1 = new <a href="qvboxlayout.html">TQVBoxLayout</a>( lay );
- vbox1-&gt;<a href="qlayout.html#setMargin">setMargin</a>( 5 );
+ vbox1-&gt;<a href="ntqlayout.html#setMargin">setMargin</a>( 5 );
// First child: a Label
-<a name="x423"></a> vbox1-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( new <a href="qlabel.html">TQLabel</a>( "Check some items!", this ) );
+<a name="x423"></a> vbox1-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( new <a href="ntqlabel.html">TQLabel</a>( "Check some items!", this ) );
// Second child: the ListView
- lv1 = new <a href="qlistview.html">TQListView</a>( this );
+ lv1 = new <a href="ntqlistview.html">TQListView</a>( this );
vbox1-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( lv1 );
-<a name="x427"></a> lv1-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "Items" );
-<a name="x429"></a> lv1-&gt;<a href="qlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE );
+<a name="x427"></a> lv1-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Items" );
+<a name="x429"></a> lv1-&gt;<a href="ntqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE );
// create a list with 4 ListViewItems which will be parent items of other ListViewItems
- <a href="qvaluelist.html">TQValueList</a>&lt;TQListViewItem *&gt; parentList;
+ <a href="ntqvaluelist.html">TQValueList</a>&lt;TQListViewItem *&gt; parentList;
-<a name="x434"></a> parentList.<a href="qvaluelist.html#append">append</a>( new <a href="qchecklistitem.html">TQCheckListItem</a>( lv1, "Parent Item 1", TQCheckListItem::CheckBoxController ) );
- parentList.<a href="qvaluelist.html#append">append</a>( new <a href="qchecklistitem.html">TQCheckListItem</a>( lv1, "Parent Item 2", TQCheckListItem::CheckBoxController ) );
- parentList.<a href="qvaluelist.html#append">append</a>( new <a href="qchecklistitem.html">TQCheckListItem</a>( lv1, "Parent Item 3", TQCheckListItem::CheckBoxController ) );
- parentList.<a href="qvaluelist.html#append">append</a>( new <a href="qchecklistitem.html">TQCheckListItem</a>( lv1, "Parent Item 4", TQCheckListItem::CheckBoxController ) );
+<a name="x434"></a> parentList.<a href="ntqvaluelist.html#append">append</a>( new <a href="qchecklistitem.html">TQCheckListItem</a>( lv1, "Parent Item 1", TQCheckListItem::CheckBoxController ) );
+ parentList.<a href="ntqvaluelist.html#append">append</a>( new <a href="qchecklistitem.html">TQCheckListItem</a>( lv1, "Parent Item 2", TQCheckListItem::CheckBoxController ) );
+ parentList.<a href="ntqvaluelist.html#append">append</a>( new <a href="qchecklistitem.html">TQCheckListItem</a>( lv1, "Parent Item 3", TQCheckListItem::CheckBoxController ) );
+ parentList.<a href="ntqvaluelist.html#append">append</a>( new <a href="qchecklistitem.html">TQCheckListItem</a>( lv1, "Parent Item 4", TQCheckListItem::CheckBoxController ) );
<a href="qlistviewitem.html">TQListViewItem</a> *item = 0;
unsigned int num = 1;
// go through the list of parent items...
-<a name="x436"></a><a name="x435"></a> for ( TQValueList&lt;TQListViewItem*&gt;::Iterator it = parentList.<a href="qvaluelist.html#begin">begin</a>(); it != parentList.<a href="qvaluelist.html#end">end</a>();
+<a name="x436"></a><a name="x435"></a> for ( TQValueList&lt;TQListViewItem*&gt;::Iterator it = parentList.<a href="ntqvaluelist.html#begin">begin</a>(); it != parentList.<a href="ntqvaluelist.html#end">end</a>();
( *it )-&gt;setOpen( TRUE ), ++it, num++ ) {
item = *it;
// ...and create 5 checkable child ListViewItems for each parent item
@@ -143,44 +143,44 @@ protected slots:
// Create another widget for layouting
<a href="qvboxlayout.html">TQVBoxLayout</a> *tmp = new <a href="qvboxlayout.html">TQVBoxLayout</a>( lay );
- tmp-&gt;<a href="qlayout.html#setMargin">setMargin</a>( 5 );
+ tmp-&gt;<a href="ntqlayout.html#setMargin">setMargin</a>( 5 );
// create a pushbutton
- <a href="qpushbutton.html">TQPushButton</a> *copy1 = new <a href="qpushbutton.html">TQPushButton</a>( " -&gt; ", this );
+ <a href="ntqpushbutton.html">TQPushButton</a> *copy1 = new <a href="ntqpushbutton.html">TQPushButton</a>( " -&gt; ", this );
tmp-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( copy1 );
-<a name="x437"></a><a name="x433"></a> copy1-&gt;<a href="qwidget.html#setMaximumWidth">setMaximumWidth</a>( copy1-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>().width() );
+<a name="x437"></a><a name="x433"></a> copy1-&gt;<a href="ntqwidget.html#setMaximumWidth">setMaximumWidth</a>( copy1-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>().width() );
// connect the SIGNAL clicked() of the pushbutton with the SLOT copy1to2()
- <a href="qobject.html#connect">connect</a>( copy1, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( copy1to2() ) );
+ <a href="ntqobject.html#connect">connect</a>( copy1, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( copy1to2() ) );
// another widget for layouting
<a href="qvboxlayout.html">TQVBoxLayout</a> *vbox2 = new <a href="qvboxlayout.html">TQVBoxLayout</a>( lay );
- vbox2-&gt;<a href="qlayout.html#setMargin">setMargin</a>( 5 );
+ vbox2-&gt;<a href="ntqlayout.html#setMargin">setMargin</a>( 5 );
// and another label
- vbox2-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( new <a href="qlabel.html">TQLabel</a>( "Check one item!", this ) );
+ vbox2-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( new <a href="ntqlabel.html">TQLabel</a>( "Check one item!", this ) );
// create the second listview
- lv2 = new <a href="qlistview.html">TQListView</a>( this );
+ lv2 = new <a href="ntqlistview.html">TQListView</a>( this );
vbox2-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( lv2 );
- lv2-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "Items" );
- lv2-&gt;<a href="qlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE );
+ lv2-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Items" );
+ lv2-&gt;<a href="ntqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE );
// another widget needed for layouting only
tmp = new <a href="qvboxlayout.html">TQVBoxLayout</a>( lay );
- tmp-&gt;<a href="qlayout.html#setMargin">setMargin</a>( 5 );
+ tmp-&gt;<a href="ntqlayout.html#setMargin">setMargin</a>( 5 );
// create another pushbutton...
- <a href="qpushbutton.html">TQPushButton</a> *copy2 = new <a href="qpushbutton.html">TQPushButton</a>( " -&gt; ", this );
+ <a href="ntqpushbutton.html">TQPushButton</a> *copy2 = new <a href="ntqpushbutton.html">TQPushButton</a>( " -&gt; ", this );
lay-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( copy2 );
- copy2-&gt;<a href="qwidget.html#setMaximumWidth">setMaximumWidth</a>( copy2-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>().width() );
+ copy2-&gt;<a href="ntqwidget.html#setMaximumWidth">setMaximumWidth</a>( copy2-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>().width() );
// ...and connect its clicked() SIGNAL to the copy2to3() SLOT
- <a href="qobject.html#connect">connect</a>( copy2, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( copy2to3() ) );
+ <a href="ntqobject.html#connect">connect</a>( copy2, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( copy2to3() ) );
tmp = new <a href="qvboxlayout.html">TQVBoxLayout</a>( lay );
- tmp-&gt;<a href="qlayout.html#setMargin">setMargin</a>( 5 );
+ tmp-&gt;<a href="ntqlayout.html#setMargin">setMargin</a>( 5 );
// and create a label which will be at the right of the window
- label = new <a href="qlabel.html">TQLabel</a>( "No Item yet...", this );
+ label = new <a href="ntqlabel.html">TQLabel</a>( "No Item yet...", this );
tmp-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( label );
}
@@ -196,7 +196,7 @@ void <a name="f249"></a>CheckLists::copy1to2()
// create an iterator which operates on the first ListView
<a href="qlistviewitemiterator.html">TQListViewItemIterator</a> it( lv1 );
-<a name="x428"></a> lv2-&gt;<a href="qlistview.html#clear">clear</a>();
+<a name="x428"></a> lv2-&gt;<a href="ntqlistview.html#clear">clear</a>();
// Insert first a controller Item into the second ListView. Always if Radio-ListViewItems
// are inserted into a Listview, the parent item of these MUST be a controller Item!
@@ -228,7 +228,7 @@ void <a name="f250"></a>CheckLists::copy2to3()
// create an iterator which operates on the second ListView
<a href="qlistviewitemiterator.html">TQListViewItemIterator</a> it( lv2 );
- label-&gt;<a href="qlabel.html#setText">setText</a>( "No Item checked" );
+ label-&gt;<a href="ntqlabel.html#setText">setText</a>( "No Item checked" );
// iterate through the second ListView...
for ( ; it.<a href="qlistviewitemiterator.html#current">current</a>(); ++it )
@@ -237,7 +237,7 @@ void <a name="f250"></a>CheckLists::copy2to3()
// ...if the item is checked...
if ( ( (TQCheckListItem*)it.<a href="qlistviewitemiterator.html#current">current</a>() )-&gt;isOn() )
// ...set the text of the item to the label
- label-&gt;<a href="qlabel.html#setText">setText</a>( it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 0 ) );
+ label-&gt;<a href="ntqlabel.html#setText">setText</a>( it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 0 ) );
}
</pre>
@@ -255,19 +255,19 @@ void <a name="f250"></a>CheckLists::copy2to3()
*****************************************************************************/
#include "checklists.h"
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
int main( int argc, char **argv )
{
- <a href="qapplication.html">TQApplication</a> a( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
CheckLists checklists;
- checklists.<a href="qwidget.html#resize">resize</a>( 650, 350 );
- checklists.<a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - CheckLists" );
- a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &amp;checklists );
- checklists.<a href="qwidget.html#show">show</a>();
+ checklists.<a href="ntqwidget.html#resize">resize</a>( 650, 350 );
+ checklists.<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - CheckLists" );
+ a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;checklists );
+ checklists.<a href="ntqwidget.html#show">show</a>();
- return a.<a href="qapplication.html#exec">exec</a>();
+ return a.<a href="ntqapplication.html#exec">exec</a>();
}
</pre>