summaryrefslogtreecommitdiffstats
path: root/doc/html/addressbook-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-08-12 22:02:11 +0900
committerMichele Calgaro <[email protected]>2024-08-12 22:02:11 +0900
commit42957a3f812a1db64a9ae452baa2d3fbc35f2466 (patch)
tree0928f4e01a3dcc0698b46c7608d8310e471bdb49 /doc/html/addressbook-example.html
parentfef846914f8db6dc117e206ef913d519bf6bb33e (diff)
downloadtqt3-42957a3f812a1db64a9ae452baa2d3fbc35f2466.tar.gz
tqt3-42957a3f812a1db64a9ae452baa2d3fbc35f2466.zip
Rename more widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/addressbook-example.html')
-rw-r--r--doc/html/addressbook-example.html168
1 files changed, 84 insertions, 84 deletions
diff --git a/doc/html/addressbook-example.html b/doc/html/addressbook-example.html
index 7d2b9a9dd..4cd459a4f 100644
--- a/doc/html/addressbook-example.html
+++ b/doc/html/addressbook-example.html
@@ -241,7 +241,7 @@ public:
protected slots:
void addEntry();
void changeEntry();
- void itemSelected( <a href="qlistviewitem.html">TQListViewItem</a>* );
+ void itemSelected( <a href="tqlistviewitem.html">TQListViewItem</a>* );
void selectionChanged();
void toggleFirstName();
void toggleLastName();
@@ -253,9 +253,9 @@ protected:
void setupTabWidget();
void setupListView();
- <a href="qgridlayout.html">TQGridLayout</a> *mainGrid;
- <a href="ntqtabwidget.html">TQTabWidget</a> *tabWidget;
- <a href="ntqlistview.html">TQListView</a> *listView;
+ <a href="tqgridlayout.html">TQGridLayout</a> *mainGrid;
+ <a href="tqtabwidget.html">TQTabWidget</a> *tabWidget;
+ <a href="tqlistview.html">TQListView</a> *listView;
<a href="tqpushbutton.html">TQPushButton</a> *add, *change, *find;
<a href="tqlineedit.html">TQLineEdit</a> *iFirstName, *iLastName, *iAddress, *iEMail,
*sFirstName, *sLastName, *sAddress, *sEMail;
@@ -280,8 +280,8 @@ protected:
#include "centralwidget.h"
-#include &lt;<a href="qtabwidget-h.html">ntqtabwidget.h</a>&gt;
-#include &lt;<a href="qlistview-h.html">ntqlistview.h</a>&gt;
+#include &lt;<a href="tqtabwidget-h.html">tqtabwidget.h</a>&gt;
+#include &lt;<a href="tqlistview-h.html">tqlistview.h</a>&gt;
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
#include &lt;<a href="tqwidget-h.html">tqwidget.h</a>&gt;
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
@@ -295,18 +295,18 @@ protected:
<a name="f274"></a>ABCentralWidget::ABCentralWidget( <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
: <a href="tqwidget.html">TQWidget</a>( parent, name )
{
- mainGrid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 1, 5, 5 );
+ mainGrid = new <a href="tqgridlayout.html">TQGridLayout</a>( this, 2, 1, 5, 5 );
setupTabWidget();
setupListView();
-<a name="x579"></a> mainGrid-&gt;<a href="qgridlayout.html#setRowStretch">setRowStretch</a>( 0, 0 );
- mainGrid-&gt;<a href="qgridlayout.html#setRowStretch">setRowStretch</a>( 1, 1 );
+<a name="x579"></a> mainGrid-&gt;<a href="tqgridlayout.html#setRowStretch">setRowStretch</a>( 0, 0 );
+ mainGrid-&gt;<a href="tqgridlayout.html#setRowStretch">setRowStretch</a>( 1, 1 );
}
void <a name="f275"></a>ABCentralWidget::save( const <a href="tqstring.html">TQString</a> &amp;filename )
{
-<a name="x590"></a> if ( !listView-&gt;<a href="ntqlistview.html#firstChild">firstChild</a>() )
+<a name="x590"></a> if ( !listView-&gt;<a href="tqlistview.html#firstChild">firstChild</a>() )
return;
<a href="tqfile.html">TQFile</a> f( filename );
@@ -316,18 +316,18 @@ void <a name="f275"></a>ABCentralWidget::save( const <a href="tqstring.html">TQS
<a href="tqtextstream.html">TQTextStream</a> t( &amp;f );
<a name="x603"></a> t.<a href="tqtextstream.html#setEncoding">setEncoding</a>(TQTextStream::UnicodeUTF8);
- <a href="qlistviewitemiterator.html">TQListViewItemIterator</a> it( listView );
+ <a href="tqlistviewitemiterator.html">TQListViewItemIterator</a> it( listView );
-<a name="x597"></a> for ( ; it.<a href="qlistviewitemiterator.html#current">current</a>(); ++it )
+<a name="x597"></a> for ( ; it.<a href="tqlistviewitemiterator.html#current">current</a>(); ++it )
for ( unsigned int i = 0; i &lt; 4; i++ )
- t &lt;&lt; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( i ) &lt;&lt; "\n";
+ t &lt;&lt; it.<a href="tqlistviewitemiterator.html#current">current</a>()-&gt;text( i ) &lt;&lt; "\n";
f.<a href="tqfile.html#close">close</a>();
}
void <a name="f276"></a>ABCentralWidget::load( const <a href="tqstring.html">TQString</a> &amp;filename )
{
-<a name="x586"></a> listView-&gt;<a href="ntqlistview.html#clear">clear</a>();
+<a name="x586"></a> listView-&gt;<a href="tqlistview.html#clear">clear</a>();
<a href="tqfile.html">TQFile</a> f( filename );
if ( !f.<a href="tqfile.html#open">open</a>( <a href="tqfile.html#open">IO_ReadOnly</a> ) )
@@ -337,9 +337,9 @@ void <a name="f276"></a>ABCentralWidget::load( const <a href="tqstring.html">TQS
t.<a href="tqtextstream.html#setEncoding">setEncoding</a>(TQTextStream::UnicodeUTF8);
<a name="x601"></a> while ( !t.<a href="tqtextstream.html#atEnd">atEnd</a>() ) {
- <a href="qlistviewitem.html">TQListViewItem</a> *item = new <a href="qlistviewitem.html">TQListViewItem</a>( listView );
+ <a href="tqlistviewitem.html">TQListViewItem</a> *item = new <a href="tqlistviewitem.html">TQListViewItem</a>( listView );
for ( unsigned int i = 0; i &lt; 4; i++ )
-<a name="x602"></a><a name="x595"></a> item-&gt;<a href="qlistviewitem.html#setText">setText</a>( i, t.<a href="tqtextstream.html#readLine">readLine</a>() );
+<a name="x602"></a><a name="x595"></a> item-&gt;<a href="tqlistviewitem.html#setText">setText</a>( i, t.<a href="tqtextstream.html#readLine">readLine</a>() );
}
f.<a href="tqfile.html#close">close</a>();
@@ -347,104 +347,104 @@ void <a name="f276"></a>ABCentralWidget::load( const <a href="tqstring.html">TQS
void <a name="f277"></a>ABCentralWidget::setupTabWidget()
{
- tabWidget = new <a href="ntqtabwidget.html">TQTabWidget</a>( this );
+ tabWidget = new <a href="tqtabwidget.html">TQTabWidget</a>( this );
<a href="tqwidget.html">TQWidget</a> *input = new <a href="tqwidget.html">TQWidget</a>( tabWidget );
- <a href="qgridlayout.html">TQGridLayout</a> *grid1 = new <a href="qgridlayout.html">TQGridLayout</a>( input, 2, 5, 5, 5 );
+ <a href="tqgridlayout.html">TQGridLayout</a> *grid1 = new <a href="tqgridlayout.html">TQGridLayout</a>( input, 2, 5, 5, 5 );
<a href="tqlabel.html">TQLabel</a> *liFirstName = new <a href="tqlabel.html">TQLabel</a>( "First &amp;Name", input );
<a name="x604"></a><a name="x581"></a> liFirstName-&gt;<a href="tqwidget.html#resize">resize</a>( liFirstName-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>() );
-<a name="x578"></a> grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( liFirstName, 0, 0 );
+<a name="x578"></a> grid1-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( liFirstName, 0, 0 );
<a href="tqlabel.html">TQLabel</a> *liLastName = new <a href="tqlabel.html">TQLabel</a>( "&amp;Last Name", input );
liLastName-&gt;<a href="tqwidget.html#resize">resize</a>( liLastName-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>() );
- grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( liLastName, 0, 1 );
+ grid1-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( liLastName, 0, 1 );
<a href="tqlabel.html">TQLabel</a> *liAddress = new <a href="tqlabel.html">TQLabel</a>( "Add&amp;ress", input );
liAddress-&gt;<a href="tqwidget.html#resize">resize</a>( liAddress-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>() );
- grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( liAddress, 0, 2 );
+ grid1-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( liAddress, 0, 2 );
<a href="tqlabel.html">TQLabel</a> *liEMail = new <a href="tqlabel.html">TQLabel</a>( "&amp;E-Mail", input );
liEMail-&gt;<a href="tqwidget.html#resize">resize</a>( liEMail-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>() );
- grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( liEMail, 0, 3 );
+ grid1-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( liEMail, 0, 3 );
add = new <a href="tqpushbutton.html">TQPushButton</a>( "A&amp;dd", input );
<a name="x599"></a><a name="x598"></a> add-&gt;<a href="tqwidget.html#resize">resize</a>( add-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>() );
- grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( add, 0, 4 );
- <a href="tqobject.html#connect">connect</a>( add, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( addEntry() ) );
+ grid1-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( add, 0, 4 );
+ <a href="tqobject.html#connect">connect</a>( add, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( addEntry() ) );
iFirstName = new <a href="tqlineedit.html">TQLineEdit</a>( input );
<a name="x583"></a> iFirstName-&gt;<a href="tqwidget.html#resize">resize</a>( iFirstName-&gt;<a href="tqlineedit.html#sizeHint">sizeHint</a>() );
- grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( iFirstName, 1, 0 );
+ grid1-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( iFirstName, 1, 0 );
<a name="x580"></a> liFirstName-&gt;<a href="tqlabel.html#setBuddy">setBuddy</a>( iFirstName );
iLastName = new <a href="tqlineedit.html">TQLineEdit</a>( input );
iLastName-&gt;<a href="tqwidget.html#resize">resize</a>( iLastName-&gt;<a href="tqlineedit.html#sizeHint">sizeHint</a>() );
- grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( iLastName, 1, 1 );
+ grid1-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( iLastName, 1, 1 );
liLastName-&gt;<a href="tqlabel.html#setBuddy">setBuddy</a>( iLastName );
iAddress = new <a href="tqlineedit.html">TQLineEdit</a>( input );
iAddress-&gt;<a href="tqwidget.html#resize">resize</a>( iAddress-&gt;<a href="tqlineedit.html#sizeHint">sizeHint</a>() );
- grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( iAddress, 1, 2 );
+ grid1-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( iAddress, 1, 2 );
liAddress-&gt;<a href="tqlabel.html#setBuddy">setBuddy</a>( iAddress );
iEMail = new <a href="tqlineedit.html">TQLineEdit</a>( input );
iEMail-&gt;<a href="tqwidget.html#resize">resize</a>( iEMail-&gt;<a href="tqlineedit.html#sizeHint">sizeHint</a>() );
- grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( iEMail, 1, 3 );
+ grid1-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( iEMail, 1, 3 );
liEMail-&gt;<a href="tqlabel.html#setBuddy">setBuddy</a>( iEMail );
change = new <a href="tqpushbutton.html">TQPushButton</a>( "&amp;Change", input );
change-&gt;<a href="tqwidget.html#resize">resize</a>( change-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>() );
- grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( change, 1, 4 );
- <a href="tqobject.html#connect">connect</a>( change, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( changeEntry() ) );
+ grid1-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( change, 1, 4 );
+ <a href="tqobject.html#connect">connect</a>( change, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( changeEntry() ) );
-<a name="x600"></a> tabWidget-&gt;<a href="ntqtabwidget.html#addTab">addTab</a>( input, "&amp;Add/Change Entry" );
+<a name="x600"></a> tabWidget-&gt;<a href="tqtabwidget.html#addTab">addTab</a>( input, "&amp;Add/Change Entry" );
// --------------------------------------
<a href="tqwidget.html">TQWidget</a> *search = new <a href="tqwidget.html">TQWidget</a>( this );
- <a href="qgridlayout.html">TQGridLayout</a> *grid2 = new <a href="qgridlayout.html">TQGridLayout</a>( search, 2, 5, 5, 5 );
+ <a href="tqgridlayout.html">TQGridLayout</a> *grid2 = new <a href="tqgridlayout.html">TQGridLayout</a>( search, 2, 5, 5, 5 );
cFirstName = new <a href="tqcheckbox.html">TQCheckBox</a>( "First &amp;Name", search );
<a name="x575"></a> cFirstName-&gt;<a href="tqwidget.html#resize">resize</a>( cFirstName-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>() );
- grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cFirstName, 0, 0 );
- <a href="tqobject.html#connect">connect</a>( cFirstName, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( toggleFirstName() ) );
+ grid2-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( cFirstName, 0, 0 );
+ <a href="tqobject.html#connect">connect</a>( cFirstName, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( toggleFirstName() ) );
cLastName = new <a href="tqcheckbox.html">TQCheckBox</a>( "&amp;Last Name", search );
cLastName-&gt;<a href="tqwidget.html#resize">resize</a>( cLastName-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>() );
- grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cLastName, 0, 1 );
- <a href="tqobject.html#connect">connect</a>( cLastName, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( toggleLastName() ) );
+ grid2-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( cLastName, 0, 1 );
+ <a href="tqobject.html#connect">connect</a>( cLastName, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( toggleLastName() ) );
cAddress = new <a href="tqcheckbox.html">TQCheckBox</a>( "Add&amp;ress", search );
cAddress-&gt;<a href="tqwidget.html#resize">resize</a>( cAddress-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>() );
- grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cAddress, 0, 2 );
- <a href="tqobject.html#connect">connect</a>( cAddress, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( toggleAddress() ) );
+ grid2-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( cAddress, 0, 2 );
+ <a href="tqobject.html#connect">connect</a>( cAddress, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( toggleAddress() ) );
cEMail = new <a href="tqcheckbox.html">TQCheckBox</a>( "&amp;E-Mail", search );
cEMail-&gt;<a href="tqwidget.html#resize">resize</a>( cEMail-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>() );
- grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cEMail, 0, 3 );
- <a href="tqobject.html#connect">connect</a>( cEMail, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( toggleEMail() ) );
+ grid2-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( cEMail, 0, 3 );
+ <a href="tqobject.html#connect">connect</a>( cEMail, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( toggleEMail() ) );
sFirstName = new <a href="tqlineedit.html">TQLineEdit</a>( search );
sFirstName-&gt;<a href="tqwidget.html#resize">resize</a>( sFirstName-&gt;<a href="tqlineedit.html#sizeHint">sizeHint</a>() );
- grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( sFirstName, 1, 0 );
+ grid2-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( sFirstName, 1, 0 );
sLastName = new <a href="tqlineedit.html">TQLineEdit</a>( search );
sLastName-&gt;<a href="tqwidget.html#resize">resize</a>( sLastName-&gt;<a href="tqlineedit.html#sizeHint">sizeHint</a>() );
- grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( sLastName, 1, 1 );
+ grid2-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( sLastName, 1, 1 );
sAddress = new <a href="tqlineedit.html">TQLineEdit</a>( search );
sAddress-&gt;<a href="tqwidget.html#resize">resize</a>( sAddress-&gt;<a href="tqlineedit.html#sizeHint">sizeHint</a>() );
- grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( sAddress, 1, 2 );
+ grid2-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( sAddress, 1, 2 );
sEMail = new <a href="tqlineedit.html">TQLineEdit</a>( search );
sEMail-&gt;<a href="tqwidget.html#resize">resize</a>( sEMail-&gt;<a href="tqlineedit.html#sizeHint">sizeHint</a>() );
- grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( sEMail, 1, 3 );
+ grid2-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( sEMail, 1, 3 );
find = new <a href="tqpushbutton.html">TQPushButton</a>( "F&amp;ind", search );
find-&gt;<a href="tqwidget.html#resize">resize</a>( find-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>() );
- grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( find, 1, 4 );
- <a href="tqobject.html#connect">connect</a>( find, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( findEntries() ) );
+ grid2-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( find, 1, 4 );
+ <a href="tqobject.html#connect">connect</a>( find, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( findEntries() ) );
<a name="x574"></a> cFirstName-&gt;<a href="tqcheckbox.html#setChecked">setChecked</a>( TRUE );
<a name="x605"></a> sFirstName-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( TRUE );
@@ -452,36 +452,36 @@ void <a name="f277"></a>ABCentralWidget::setupTabWidget()
sAddress-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE );
sEMail-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE );
- tabWidget-&gt;<a href="ntqtabwidget.html#addTab">addTab</a>( search, "&amp;Search" );
+ tabWidget-&gt;<a href="tqtabwidget.html#addTab">addTab</a>( search, "&amp;Search" );
- mainGrid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tabWidget, 0, 0 );
+ mainGrid-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( tabWidget, 0, 0 );
}
void <a name="f278"></a>ABCentralWidget::setupListView()
{
- listView = new <a href="ntqlistview.html">TQListView</a>( this );
-<a name="x585"></a> listView-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "First Name" );
- listView-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Last Name" );
- listView-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Address" );
- listView-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "E-Mail" );
+ listView = new <a href="tqlistview.html">TQListView</a>( this );
+<a name="x585"></a> listView-&gt;<a href="tqlistview.html#addColumn">addColumn</a>( "First Name" );
+ listView-&gt;<a href="tqlistview.html#addColumn">addColumn</a>( "Last Name" );
+ listView-&gt;<a href="tqlistview.html#addColumn">addColumn</a>( "Address" );
+ listView-&gt;<a href="tqlistview.html#addColumn">addColumn</a>( "E-Mail" );
-<a name="x592"></a> listView-&gt;<a href="ntqlistview.html#setSelectionMode">setSelectionMode</a>( TQListView::Single );
+<a name="x592"></a> listView-&gt;<a href="tqlistview.html#setSelectionMode">setSelectionMode</a>( TQListView::Single );
-<a name="x588"></a> <a href="tqobject.html#connect">connect</a>( listView, TQ_SIGNAL( <a href="ntqlistview.html#clicked">clicked</a>( <a href="qlistviewitem.html">TQListViewItem</a>* ) ), this, TQ_SLOT( itemSelected( <a href="qlistviewitem.html">TQListViewItem</a>* ) ) );
+<a name="x588"></a> <a href="tqobject.html#connect">connect</a>( listView, TQ_SIGNAL( <a href="tqlistview.html#clicked">clicked</a>( <a href="tqlistviewitem.html">TQListViewItem</a>* ) ), this, TQ_SLOT( itemSelected( <a href="tqlistviewitem.html">TQListViewItem</a>* ) ) );
- mainGrid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( listView, 1, 0 );
-<a name="x591"></a> listView-&gt;<a href="ntqlistview.html#setAllColumnsShowFocus">setAllColumnsShowFocus</a>( TRUE );
+ mainGrid-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( listView, 1, 0 );
+<a name="x591"></a> listView-&gt;<a href="tqlistview.html#setAllColumnsShowFocus">setAllColumnsShowFocus</a>( TRUE );
}
void <a name="f279"></a>ABCentralWidget::addEntry()
{
<a name="x584"></a> if ( !iFirstName-&gt;<a href="tqlineedit.html#text">text</a>().isEmpty() || !iLastName-&gt;<a href="tqlineedit.html#text">text</a>().isEmpty() ||
!iAddress-&gt;<a href="tqlineedit.html#text">text</a>().isEmpty() || !iEMail-&gt;<a href="tqlineedit.html#text">text</a>().isEmpty() ) {
- <a href="qlistviewitem.html">TQListViewItem</a> *item = new <a href="qlistviewitem.html">TQListViewItem</a>( listView );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 0, iFirstName-&gt;<a href="tqlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 1, iLastName-&gt;<a href="tqlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 2, iAddress-&gt;<a href="tqlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 3, iEMail-&gt;<a href="tqlineedit.html#text">text</a>() );
+ <a href="tqlistviewitem.html">TQListViewItem</a> *item = new <a href="tqlistviewitem.html">TQListViewItem</a>( listView );
+ item-&gt;<a href="tqlistviewitem.html#setText">setText</a>( 0, iFirstName-&gt;<a href="tqlineedit.html#text">text</a>() );
+ item-&gt;<a href="tqlistviewitem.html#setText">setText</a>( 1, iLastName-&gt;<a href="tqlineedit.html#text">text</a>() );
+ item-&gt;<a href="tqlistviewitem.html#setText">setText</a>( 2, iAddress-&gt;<a href="tqlineedit.html#text">text</a>() );
+ item-&gt;<a href="tqlistviewitem.html#setText">setText</a>( 3, iEMail-&gt;<a href="tqlineedit.html#text">text</a>() );
}
<a name="x582"></a> iFirstName-&gt;<a href="tqlineedit.html#setText">setText</a>( "" );
@@ -492,15 +492,15 @@ void <a name="f279"></a>ABCentralWidget::addEntry()
void <a name="f280"></a>ABCentralWidget::changeEntry()
{
-<a name="x589"></a> <a href="qlistviewitem.html">TQListViewItem</a> *item = listView-&gt;<a href="ntqlistview.html#currentItem">currentItem</a>();
+<a name="x589"></a> <a href="tqlistviewitem.html">TQListViewItem</a> *item = listView-&gt;<a href="tqlistview.html#currentItem">currentItem</a>();
if ( item &amp;&amp;
( !iFirstName-&gt;<a href="tqlineedit.html#text">text</a>().isEmpty() || !iLastName-&gt;<a href="tqlineedit.html#text">text</a>().isEmpty() ||
!iAddress-&gt;<a href="tqlineedit.html#text">text</a>().isEmpty() || !iEMail-&gt;<a href="tqlineedit.html#text">text</a>().isEmpty() ) ) {
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 0, iFirstName-&gt;<a href="tqlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 1, iLastName-&gt;<a href="tqlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 2, iAddress-&gt;<a href="tqlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 3, iEMail-&gt;<a href="tqlineedit.html#text">text</a>() );
+ item-&gt;<a href="tqlistviewitem.html#setText">setText</a>( 0, iFirstName-&gt;<a href="tqlineedit.html#text">text</a>() );
+ item-&gt;<a href="tqlistviewitem.html#setText">setText</a>( 1, iLastName-&gt;<a href="tqlineedit.html#text">text</a>() );
+ item-&gt;<a href="tqlistviewitem.html#setText">setText</a>( 2, iAddress-&gt;<a href="tqlineedit.html#text">text</a>() );
+ item-&gt;<a href="tqlistviewitem.html#setText">setText</a>( 3, iEMail-&gt;<a href="tqlineedit.html#text">text</a>() );
}
}
@@ -512,17 +512,17 @@ void <a name="f281"></a>ABCentralWidget::selectionChanged()
iEMail-&gt;<a href="tqlineedit.html#setText">setText</a>( "" );
}
-void <a name="f282"></a>ABCentralWidget::itemSelected( <a href="qlistviewitem.html">TQListViewItem</a> *item )
+void <a name="f282"></a>ABCentralWidget::itemSelected( <a href="tqlistviewitem.html">TQListViewItem</a> *item )
{
if ( !item )
return;
-<a name="x594"></a> item-&gt;<a href="qlistviewitem.html#setSelected">setSelected</a>( TRUE );
-<a name="x593"></a> item-&gt;<a href="qlistviewitem.html#repaint">repaint</a>();
+<a name="x594"></a> item-&gt;<a href="tqlistviewitem.html#setSelected">setSelected</a>( TRUE );
+<a name="x593"></a> item-&gt;<a href="tqlistviewitem.html#repaint">repaint</a>();
-<a name="x596"></a> iFirstName-&gt;<a href="tqlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 0 ) );
- iLastName-&gt;<a href="tqlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 1 ) );
- iAddress-&gt;<a href="tqlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 2 ) );
- iEMail-&gt;<a href="tqlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 3 ) );
+<a name="x596"></a> iFirstName-&gt;<a href="tqlineedit.html#setText">setText</a>( item-&gt;<a href="tqlistviewitem.html#text">text</a>( 0 ) );
+ iLastName-&gt;<a href="tqlineedit.html#setText">setText</a>( item-&gt;<a href="tqlistviewitem.html#text">text</a>( 1 ) );
+ iAddress-&gt;<a href="tqlineedit.html#setText">setText</a>( item-&gt;<a href="tqlistviewitem.html#text">text</a>( 2 ) );
+ iEMail-&gt;<a href="tqlineedit.html#setText">setText</a>( item-&gt;<a href="tqlistviewitem.html#text">text</a>( 3 ) );
}
void <a name="f283"></a>ABCentralWidget::toggleFirstName()
@@ -579,45 +579,45 @@ void <a name="f287"></a>ABCentralWidget::findEntries()
!cLastName-&gt;<a href="tqcheckbox.html#isChecked">isChecked</a>() &amp;&amp;
!cAddress-&gt;<a href="tqcheckbox.html#isChecked">isChecked</a>() &amp;&amp;
!cEMail-&gt;<a href="tqcheckbox.html#isChecked">isChecked</a>() ) {
-<a name="x587"></a> listView-&gt;<a href="ntqlistview.html#clearSelection">clearSelection</a>();
+<a name="x587"></a> listView-&gt;<a href="tqlistview.html#clearSelection">clearSelection</a>();
return;
}
- <a href="qlistviewitemiterator.html">TQListViewItemIterator</a> it( listView );
+ <a href="tqlistviewitemiterator.html">TQListViewItemIterator</a> it( listView );
- for ( ; it.<a href="qlistviewitemiterator.html#current">current</a>(); ++it ) {
+ for ( ; it.<a href="tqlistviewitemiterator.html#current">current</a>(); ++it ) {
bool select = TRUE;
if ( cFirstName-&gt;<a href="tqcheckbox.html#isChecked">isChecked</a>() ) {
- if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 0 ).contains( sFirstName-&gt;<a href="tqlineedit.html#text">text</a>() ) )
+ if ( select &amp;&amp; it.<a href="tqlistviewitemiterator.html#current">current</a>()-&gt;text( 0 ).contains( sFirstName-&gt;<a href="tqlineedit.html#text">text</a>() ) )
select = TRUE;
else
select = FALSE;
}
if ( cLastName-&gt;<a href="tqcheckbox.html#isChecked">isChecked</a>() ) {
- if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 1 ).contains( sLastName-&gt;<a href="tqlineedit.html#text">text</a>() ) )
+ if ( select &amp;&amp; it.<a href="tqlistviewitemiterator.html#current">current</a>()-&gt;text( 1 ).contains( sLastName-&gt;<a href="tqlineedit.html#text">text</a>() ) )
select = TRUE;
else
select = FALSE;
}
if ( cAddress-&gt;<a href="tqcheckbox.html#isChecked">isChecked</a>() ) {
- if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 2 ).contains( sAddress-&gt;<a href="tqlineedit.html#text">text</a>() ) )
+ if ( select &amp;&amp; it.<a href="tqlistviewitemiterator.html#current">current</a>()-&gt;text( 2 ).contains( sAddress-&gt;<a href="tqlineedit.html#text">text</a>() ) )
select = TRUE;
else
select = FALSE;
}
if ( cEMail-&gt;<a href="tqcheckbox.html#isChecked">isChecked</a>() ) {
- if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 3 ).contains( sEMail-&gt;<a href="tqlineedit.html#text">text</a>() ) )
+ if ( select &amp;&amp; it.<a href="tqlistviewitemiterator.html#current">current</a>()-&gt;text( 3 ).contains( sEMail-&gt;<a href="tqlineedit.html#text">text</a>() ) )
select = TRUE;
else
select = FALSE;
}
if ( select )
- it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;setSelected( TRUE );
+ it.<a href="tqlistviewitemiterator.html#current">current</a>()-&gt;setSelected( TRUE );
else
- it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;setSelected( FALSE );
- it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;repaint();
+ it.<a href="tqlistviewitemiterator.html#current">current</a>()-&gt;setSelected( FALSE );
+ it.<a href="tqlistviewitemiterator.html#current">current</a>()-&gt;repaint();
}
}
</pre>