summaryrefslogtreecommitdiffstats
path: root/doc/html/addressbook-example.html
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-01-26 23:32:43 -0600
committerTimothy Pearson <[email protected]>2012-01-26 23:32:43 -0600
commitea318d1431c89e647598c510c4245c6571aa5f46 (patch)
tree996d29b80c30d453dda86d1a23162d441628f169 /doc/html/addressbook-example.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz
tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/addressbook-example.html')
-rw-r--r--doc/html/addressbook-example.html414
1 files changed, 207 insertions, 207 deletions
diff --git a/doc/html/addressbook-example.html b/doc/html/addressbook-example.html
index aa5da536a..a17f76207 100644
--- a/doc/html/addressbook-example.html
+++ b/doc/html/addressbook-example.html
@@ -50,14 +50,14 @@ using an addressbook as the example.
#ifndef AB_MAINWINDOW_H
#define AB_MAINWINDOW_H
-#include &lt;<a href="qmainwindow-h.html">qmainwindow.h</a>&gt;
-#include &lt;<a href="qstring-h.html">qstring.h</a>&gt;
+#include &lt;<a href="qmainwindow-h.html">ntqmainwindow.h</a>&gt;
+#include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
class TQToolBar;
class TQPopupMenu;
class ABCentralWidget;
-class ABMainWindow: public <a href="qmainwindow.html">TQMainWindow</a>
+class ABMainWindow: public <a href="ntqmainwindow.html">TQMainWindow</a>
{
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a>
@@ -79,8 +79,8 @@ protected:
void setupStatusBar();
void setupCentralWidget();
- <a href="qtoolbar.html">TQToolBar</a> *fileTools;
- <a href="qstring.html">TQString</a> filename;
+ <a href="ntqtoolbar.html">TQToolBar</a> *fileTools;
+ <a href="ntqstring.html">TQString</a> filename;
ABCentralWidget *view;
};
@@ -104,17 +104,17 @@ protected:
#include "mainwindow.h"
#include "centralwidget.h"
-#include &lt;<a href="qtoolbar-h.html">qtoolbar.h</a>&gt;
-#include &lt;<a href="qtoolbutton-h.html">qtoolbutton.h</a>&gt;
-#include &lt;<a href="qpopupmenu-h.html">qpopupmenu.h</a>&gt;
-#include &lt;<a href="qmenubar-h.html">qmenubar.h</a>&gt;
-#include &lt;<a href="qstatusbar-h.html">qstatusbar.h</a>&gt;
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-#include &lt;<a href="qfiledialog-h.html">qfiledialog.h</a>&gt;
+#include &lt;<a href="qtoolbar-h.html">ntqtoolbar.h</a>&gt;
+#include &lt;<a href="qtoolbutton-h.html">ntqtoolbutton.h</a>&gt;
+#include &lt;<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>&gt;
+#include &lt;<a href="qmenubar-h.html">ntqmenubar.h</a>&gt;
+#include &lt;<a href="qstatusbar-h.html">ntqstatusbar.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="qfiledialog-h.html">ntqfiledialog.h</a>&gt;
<a name="f263"></a>ABMainWindow::ABMainWindow()
- : <a href="qmainwindow.html">TQMainWindow</a>( 0, "example addressbook application" ),
- filename( <a href="qstring.html#TQString-null">TQString::null</a> )
+ : <a href="ntqmainwindow.html">TQMainWindow</a>( 0, "example addressbook application" ),
+ filename( <a href="ntqstring.html#TQString-null">TQString::null</a> )
{
setupMenuBar();
setupFileTools();
@@ -129,24 +129,24 @@ ABMainWindow::~ABMainWindow()
void <a name="f264"></a>ABMainWindow::setupMenuBar()
{
- <a href="qpopupmenu.html">TQPopupMenu</a> *file = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
- <a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( "&amp;File", file );
-
-<a name="x569"></a> file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "New", this, SLOT( fileNew() ), CTRL + Key_N );
- file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( TQPixmap( "fileopen.xpm" ), "Open", this, SLOT( fileOpen() ), CTRL + Key_O );
-<a name="x570"></a> file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( TQPixmap( "filesave.xpm" ), "Save", this, SLOT( fileSave() ), CTRL + Key_S );
- file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Save As...", this, SLOT( fileSaveAs() ) );
- file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( TQPixmap( "fileprint.xpm" ), "Print...", this, SLOT( filePrint() ), CTRL + Key_P );
- file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Close", this, SLOT( closeWindow() ), CTRL + Key_W );
- file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT( <a href="qapplication.html#quit">quit</a>() ), CTRL + Key_Q );
+ <a href="ntqpopupmenu.html">TQPopupMenu</a> *file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
+ <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( "&amp;File", file );
+
+<a name="x569"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "New", this, SLOT( fileNew() ), CTRL + Key_N );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( TQPixmap( "fileopen.xpm" ), "Open", this, SLOT( fileOpen() ), CTRL + Key_O );
+<a name="x570"></a> file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( TQPixmap( "filesave.xpm" ), "Save", this, SLOT( fileSave() ), CTRL + Key_S );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Save As...", this, SLOT( fileSaveAs() ) );
+ file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( TQPixmap( "fileprint.xpm" ), "Print...", this, SLOT( filePrint() ), CTRL + Key_P );
+ file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Close", this, SLOT( closeWindow() ), CTRL + Key_W );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ), CTRL + Key_Q );
}
void <a name="f265"></a>ABMainWindow::setupFileTools()
{
- //fileTools = new <a href="qtoolbar.html">TQToolBar</a>( this, "file operations" );
+ //fileTools = new <a href="ntqtoolbar.html">TQToolBar</a>( this, "file operations" );
}
void <a name="f266"></a>ABMainWindow::setupStatusBar()
@@ -157,12 +157,12 @@ void <a name="f266"></a>ABMainWindow::setupStatusBar()
void <a name="f267"></a>ABMainWindow::setupCentralWidget()
{
view = new ABCentralWidget( this );
- <a href="qmainwindow.html#setCentralWidget">setCentralWidget</a>( view );
+ <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( view );
}
void <a name="f268"></a>ABMainWindow::closeWindow()
{
- <a href="qwidget.html#close">close</a>();
+ <a href="ntqwidget.html#close">close</a>();
}
void <a name="f269"></a>ABMainWindow::fileNew()
@@ -171,8 +171,8 @@ void <a name="f269"></a>ABMainWindow::fileNew()
void <a name="f270"></a>ABMainWindow::fileOpen()
{
-<a name="x567"></a> <a href="qstring.html">TQString</a> fn = TQFileDialog::<a href="qfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, this );
-<a name="x571"></a> if ( !fn.<a href="qstring.html#isEmpty">isEmpty</a>() ) {
+<a name="x567"></a> <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, this );
+<a name="x571"></a> if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) {
filename = fn;
view-&gt;load( filename );
}
@@ -190,8 +190,8 @@ void <a name="f271"></a>ABMainWindow::fileSave()
void <a name="f272"></a>ABMainWindow::fileSaveAs()
{
-<a name="x568"></a> <a href="qstring.html">TQString</a> fn = TQFileDialog::<a href="qfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this );
- if ( !fn.<a href="qstring.html#isEmpty">isEmpty</a>() ) {
+<a name="x568"></a> <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this );
+ if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) {
filename = fn;
fileSave();
}
@@ -217,8 +217,8 @@ void <a name="f273"></a>ABMainWindow::filePrint()
#ifndef AB_CENTRALWIDGET_H
#define AB_CENTRALWIDGET_H
-#include &lt;<a href="qwidget-h.html">qwidget.h</a>&gt;
-#include &lt;<a href="qstring-h.html">qstring.h</a>&gt;
+#include &lt;<a href="qwidget-h.html">ntqwidget.h</a>&gt;
+#include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
class TQTabWidget;
class TQListView;
@@ -228,15 +228,15 @@ class TQPushButton;
class TQListViewItem;
class TQCheckBox;
-class ABCentralWidget : public <a href="qwidget.html">TQWidget</a>
+class ABCentralWidget : public <a href="ntqwidget.html">TQWidget</a>
{
Q_OBJECT
public:
- ABCentralWidget( <a href="qwidget.html">TQWidget</a> *parent, const char *name = 0 );
+ ABCentralWidget( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name = 0 );
- void save( const <a href="qstring.html">TQString</a> &amp;filename );
- void load( const <a href="qstring.html">TQString</a> &amp;filename );
+ void save( const <a href="ntqstring.html">TQString</a> &amp;filename );
+ void load( const <a href="ntqstring.html">TQString</a> &amp;filename );
protected slots:
void addEntry();
@@ -254,12 +254,12 @@ protected:
void setupListView();
<a href="qgridlayout.html">TQGridLayout</a> *mainGrid;
- <a href="qtabwidget.html">TQTabWidget</a> *tabWidget;
- <a href="qlistview.html">TQListView</a> *listView;
- <a href="qpushbutton.html">TQPushButton</a> *add, *change, *find;
- <a href="qlineedit.html">TQLineEdit</a> *iFirstName, *iLastName, *iAddress, *iEMail,
+ <a href="ntqtabwidget.html">TQTabWidget</a> *tabWidget;
+ <a href="ntqlistview.html">TQListView</a> *listView;
+ <a href="ntqpushbutton.html">TQPushButton</a> *add, *change, *find;
+ <a href="ntqlineedit.html">TQLineEdit</a> *iFirstName, *iLastName, *iAddress, *iEMail,
*sFirstName, *sLastName, *sAddress, *sEMail;
- <a href="qcheckbox.html">TQCheckBox</a> *cFirstName, *cLastName, *cAddress, *cEMail;
+ <a href="ntqcheckbox.html">TQCheckBox</a> *cFirstName, *cLastName, *cAddress, *cEMail;
};
@@ -280,20 +280,20 @@ protected:
#include "centralwidget.h"
-#include &lt;<a href="qtabwidget-h.html">qtabwidget.h</a>&gt;
-#include &lt;<a href="qlistview-h.html">qlistview.h</a>&gt;
-#include &lt;<a href="qlayout-h.html">qlayout.h</a>&gt;
-#include &lt;<a href="qwidget-h.html">qwidget.h</a>&gt;
-#include &lt;<a href="qlabel-h.html">qlabel.h</a>&gt;
-#include &lt;<a href="qpushbutton-h.html">qpushbutton.h</a>&gt;
-#include &lt;<a href="qlineedit-h.html">qlineedit.h</a>&gt;
-#include &lt;<a href="qlabel-h.html">qlabel.h</a>&gt;
-#include &lt;<a href="qcheckbox-h.html">qcheckbox.h</a>&gt;
-#include &lt;<a href="qfile-h.html">qfile.h</a>&gt;
-#include &lt;<a href="qtextstream-h.html">qtextstream.h</a>&gt;
-
-<a name="f274"></a>ABCentralWidget::ABCentralWidget( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="qwidget.html">TQWidget</a>( parent, name )
+#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="qlayout-h.html">ntqlayout.h</a>&gt;
+#include &lt;<a href="qwidget-h.html">ntqwidget.h</a>&gt;
+#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
+#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
+#include &lt;<a href="qlineedit-h.html">ntqlineedit.h</a>&gt;
+#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
+#include &lt;<a href="qcheckbox-h.html">ntqcheckbox.h</a>&gt;
+#include &lt;<a href="qfile-h.html">ntqfile.h</a>&gt;
+#include &lt;<a href="qtextstream-h.html">ntqtextstream.h</a>&gt;
+
+<a name="f274"></a>ABCentralWidget::ABCentralWidget( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="ntqwidget.html">TQWidget</a>( parent, name )
{
mainGrid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 1, 5, 5 );
@@ -304,17 +304,17 @@ protected:
mainGrid-&gt;<a href="qgridlayout.html#setRowStretch">setRowStretch</a>( 1, 1 );
}
-void <a name="f275"></a>ABCentralWidget::save( const <a href="qstring.html">TQString</a> &amp;filename )
+void <a name="f275"></a>ABCentralWidget::save( const <a href="ntqstring.html">TQString</a> &amp;filename )
{
-<a name="x590"></a> if ( !listView-&gt;<a href="qlistview.html#firstChild">firstChild</a>() )
+<a name="x590"></a> if ( !listView-&gt;<a href="ntqlistview.html#firstChild">firstChild</a>() )
return;
- <a href="qfile.html">TQFile</a> f( filename );
- if ( !f.<a href="qfile.html#open">open</a>( <a href="qfile.html#open">IO_WriteOnly</a> ) )
+ <a href="ntqfile.html">TQFile</a> f( filename );
+ if ( !f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_WriteOnly</a> ) )
return;
- <a href="qtextstream.html">TQTextStream</a> t( &amp;f );
-<a name="x603"></a> t.<a href="qtextstream.html#setEncoding">setEncoding</a>(TQTextStream::UnicodeUTF8);
+ <a href="ntqtextstream.html">TQTextStream</a> t( &amp;f );
+<a name="x603"></a> t.<a href="ntqtextstream.html#setEncoding">setEncoding</a>(TQTextStream::UnicodeUTF8);
<a href="qlistviewitemiterator.html">TQListViewItemIterator</a> it( listView );
@@ -322,194 +322,194 @@ void <a name="f275"></a>ABCentralWidget::save( const <a href="qstring.html">TQSt
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";
- f.<a href="qfile.html#close">close</a>();
+ f.<a href="ntqfile.html#close">close</a>();
}
-void <a name="f276"></a>ABCentralWidget::load( const <a href="qstring.html">TQString</a> &amp;filename )
+void <a name="f276"></a>ABCentralWidget::load( const <a href="ntqstring.html">TQString</a> &amp;filename )
{
-<a name="x586"></a> listView-&gt;<a href="qlistview.html#clear">clear</a>();
+<a name="x586"></a> listView-&gt;<a href="ntqlistview.html#clear">clear</a>();
- <a href="qfile.html">TQFile</a> f( filename );
- if ( !f.<a href="qfile.html#open">open</a>( <a href="qfile.html#open">IO_ReadOnly</a> ) )
+ <a href="ntqfile.html">TQFile</a> f( filename );
+ if ( !f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ) )
return;
- <a href="qtextstream.html">TQTextStream</a> t( &amp;f );
- t.<a href="qtextstream.html#setEncoding">setEncoding</a>(TQTextStream::UnicodeUTF8);
+ <a href="ntqtextstream.html">TQTextStream</a> t( &amp;f );
+ t.<a href="ntqtextstream.html#setEncoding">setEncoding</a>(TQTextStream::UnicodeUTF8);
-<a name="x601"></a> while ( !t.<a href="qtextstream.html#atEnd">atEnd</a>() ) {
+<a name="x601"></a> while ( !t.<a href="ntqtextstream.html#atEnd">atEnd</a>() ) {
<a href="qlistviewitem.html">TQListViewItem</a> *item = new <a href="qlistviewitem.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="qtextstream.html#readLine">readLine</a>() );
+<a name="x602"></a><a name="x595"></a> item-&gt;<a href="qlistviewitem.html#setText">setText</a>( i, t.<a href="ntqtextstream.html#readLine">readLine</a>() );
}
- f.<a href="qfile.html#close">close</a>();
+ f.<a href="ntqfile.html#close">close</a>();
}
void <a name="f277"></a>ABCentralWidget::setupTabWidget()
{
- tabWidget = new <a href="qtabwidget.html">TQTabWidget</a>( this );
+ tabWidget = new <a href="ntqtabwidget.html">TQTabWidget</a>( this );
- <a href="qwidget.html">TQWidget</a> *input = new <a href="qwidget.html">TQWidget</a>( tabWidget );
+ <a href="ntqwidget.html">TQWidget</a> *input = new <a href="ntqwidget.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="qlabel.html">TQLabel</a> *liFirstName = new <a href="qlabel.html">TQLabel</a>( "First &amp;Name", input );
-<a name="x604"></a><a name="x581"></a> liFirstName-&gt;<a href="qwidget.html#resize">resize</a>( liFirstName-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>() );
+ <a href="ntqlabel.html">TQLabel</a> *liFirstName = new <a href="ntqlabel.html">TQLabel</a>( "First &amp;Name", input );
+<a name="x604"></a><a name="x581"></a> liFirstName-&gt;<a href="ntqwidget.html#resize">resize</a>( liFirstName-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>() );
<a name="x578"></a> grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( liFirstName, 0, 0 );
- <a href="qlabel.html">TQLabel</a> *liLastName = new <a href="qlabel.html">TQLabel</a>( "&amp;Last Name", input );
- liLastName-&gt;<a href="qwidget.html#resize">resize</a>( liLastName-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>() );
+ <a href="ntqlabel.html">TQLabel</a> *liLastName = new <a href="ntqlabel.html">TQLabel</a>( "&amp;Last Name", input );
+ liLastName-&gt;<a href="ntqwidget.html#resize">resize</a>( liLastName-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>() );
grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( liLastName, 0, 1 );
- <a href="qlabel.html">TQLabel</a> *liAddress = new <a href="qlabel.html">TQLabel</a>( "Add&amp;ress", input );
- liAddress-&gt;<a href="qwidget.html#resize">resize</a>( liAddress-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>() );
+ <a href="ntqlabel.html">TQLabel</a> *liAddress = new <a href="ntqlabel.html">TQLabel</a>( "Add&amp;ress", input );
+ liAddress-&gt;<a href="ntqwidget.html#resize">resize</a>( liAddress-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>() );
grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( liAddress, 0, 2 );
- <a href="qlabel.html">TQLabel</a> *liEMail = new <a href="qlabel.html">TQLabel</a>( "&amp;E-Mail", input );
- liEMail-&gt;<a href="qwidget.html#resize">resize</a>( liEMail-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>() );
+ <a href="ntqlabel.html">TQLabel</a> *liEMail = new <a href="ntqlabel.html">TQLabel</a>( "&amp;E-Mail", input );
+ liEMail-&gt;<a href="ntqwidget.html#resize">resize</a>( liEMail-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>() );
grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( liEMail, 0, 3 );
- add = new <a href="qpushbutton.html">TQPushButton</a>( "A&amp;dd", input );
-<a name="x599"></a><a name="x598"></a> add-&gt;<a href="qwidget.html#resize">resize</a>( add-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>() );
+ add = new <a href="ntqpushbutton.html">TQPushButton</a>( "A&amp;dd", input );
+<a name="x599"></a><a name="x598"></a> add-&gt;<a href="ntqwidget.html#resize">resize</a>( add-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>() );
grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( add, 0, 4 );
- <a href="qobject.html#connect">connect</a>( add, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( addEntry() ) );
+ <a href="ntqobject.html#connect">connect</a>( add, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( addEntry() ) );
- iFirstName = new <a href="qlineedit.html">TQLineEdit</a>( input );
-<a name="x583"></a> iFirstName-&gt;<a href="qwidget.html#resize">resize</a>( iFirstName-&gt;<a href="qlineedit.html#sizeHint">sizeHint</a>() );
+ iFirstName = new <a href="ntqlineedit.html">TQLineEdit</a>( input );
+<a name="x583"></a> iFirstName-&gt;<a href="ntqwidget.html#resize">resize</a>( iFirstName-&gt;<a href="ntqlineedit.html#sizeHint">sizeHint</a>() );
grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( iFirstName, 1, 0 );
-<a name="x580"></a> liFirstName-&gt;<a href="qlabel.html#setBuddy">setBuddy</a>( iFirstName );
+<a name="x580"></a> liFirstName-&gt;<a href="ntqlabel.html#setBuddy">setBuddy</a>( iFirstName );
- iLastName = new <a href="qlineedit.html">TQLineEdit</a>( input );
- iLastName-&gt;<a href="qwidget.html#resize">resize</a>( iLastName-&gt;<a href="qlineedit.html#sizeHint">sizeHint</a>() );
+ iLastName = new <a href="ntqlineedit.html">TQLineEdit</a>( input );
+ iLastName-&gt;<a href="ntqwidget.html#resize">resize</a>( iLastName-&gt;<a href="ntqlineedit.html#sizeHint">sizeHint</a>() );
grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( iLastName, 1, 1 );
- liLastName-&gt;<a href="qlabel.html#setBuddy">setBuddy</a>( iLastName );
+ liLastName-&gt;<a href="ntqlabel.html#setBuddy">setBuddy</a>( iLastName );
- iAddress = new <a href="qlineedit.html">TQLineEdit</a>( input );
- iAddress-&gt;<a href="qwidget.html#resize">resize</a>( iAddress-&gt;<a href="qlineedit.html#sizeHint">sizeHint</a>() );
+ iAddress = new <a href="ntqlineedit.html">TQLineEdit</a>( input );
+ iAddress-&gt;<a href="ntqwidget.html#resize">resize</a>( iAddress-&gt;<a href="ntqlineedit.html#sizeHint">sizeHint</a>() );
grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( iAddress, 1, 2 );
- liAddress-&gt;<a href="qlabel.html#setBuddy">setBuddy</a>( iAddress );
+ liAddress-&gt;<a href="ntqlabel.html#setBuddy">setBuddy</a>( iAddress );
- iEMail = new <a href="qlineedit.html">TQLineEdit</a>( input );
- iEMail-&gt;<a href="qwidget.html#resize">resize</a>( iEMail-&gt;<a href="qlineedit.html#sizeHint">sizeHint</a>() );
+ iEMail = new <a href="ntqlineedit.html">TQLineEdit</a>( input );
+ iEMail-&gt;<a href="ntqwidget.html#resize">resize</a>( iEMail-&gt;<a href="ntqlineedit.html#sizeHint">sizeHint</a>() );
grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( iEMail, 1, 3 );
- liEMail-&gt;<a href="qlabel.html#setBuddy">setBuddy</a>( iEMail );
+ liEMail-&gt;<a href="ntqlabel.html#setBuddy">setBuddy</a>( iEMail );
- change = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Change", input );
- change-&gt;<a href="qwidget.html#resize">resize</a>( change-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>() );
+ change = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Change", input );
+ change-&gt;<a href="ntqwidget.html#resize">resize</a>( change-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>() );
grid1-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( change, 1, 4 );
- <a href="qobject.html#connect">connect</a>( change, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( changeEntry() ) );
+ <a href="ntqobject.html#connect">connect</a>( change, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( changeEntry() ) );
-<a name="x600"></a> tabWidget-&gt;<a href="qtabwidget.html#addTab">addTab</a>( input, "&amp;Add/Change Entry" );
+<a name="x600"></a> tabWidget-&gt;<a href="ntqtabwidget.html#addTab">addTab</a>( input, "&amp;Add/Change Entry" );
// --------------------------------------
- <a href="qwidget.html">TQWidget</a> *search = new <a href="qwidget.html">TQWidget</a>( this );
+ <a href="ntqwidget.html">TQWidget</a> *search = new <a href="ntqwidget.html">TQWidget</a>( this );
<a href="qgridlayout.html">TQGridLayout</a> *grid2 = new <a href="qgridlayout.html">TQGridLayout</a>( search, 2, 5, 5, 5 );
- cFirstName = new <a href="qcheckbox.html">TQCheckBox</a>( "First &amp;Name", search );
-<a name="x575"></a> cFirstName-&gt;<a href="qwidget.html#resize">resize</a>( cFirstName-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>() );
+ cFirstName = new <a href="ntqcheckbox.html">TQCheckBox</a>( "First &amp;Name", search );
+<a name="x575"></a> cFirstName-&gt;<a href="ntqwidget.html#resize">resize</a>( cFirstName-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>() );
grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cFirstName, 0, 0 );
- <a href="qobject.html#connect">connect</a>( cFirstName, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( toggleFirstName() ) );
+ <a href="ntqobject.html#connect">connect</a>( cFirstName, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( toggleFirstName() ) );
- cLastName = new <a href="qcheckbox.html">TQCheckBox</a>( "&amp;Last Name", search );
- cLastName-&gt;<a href="qwidget.html#resize">resize</a>( cLastName-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>() );
+ cLastName = new <a href="ntqcheckbox.html">TQCheckBox</a>( "&amp;Last Name", search );
+ cLastName-&gt;<a href="ntqwidget.html#resize">resize</a>( cLastName-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>() );
grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cLastName, 0, 1 );
- <a href="qobject.html#connect">connect</a>( cLastName, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( toggleLastName() ) );
+ <a href="ntqobject.html#connect">connect</a>( cLastName, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( toggleLastName() ) );
- cAddress = new <a href="qcheckbox.html">TQCheckBox</a>( "Add&amp;ress", search );
- cAddress-&gt;<a href="qwidget.html#resize">resize</a>( cAddress-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>() );
+ cAddress = new <a href="ntqcheckbox.html">TQCheckBox</a>( "Add&amp;ress", search );
+ cAddress-&gt;<a href="ntqwidget.html#resize">resize</a>( cAddress-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>() );
grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cAddress, 0, 2 );
- <a href="qobject.html#connect">connect</a>( cAddress, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( toggleAddress() ) );
+ <a href="ntqobject.html#connect">connect</a>( cAddress, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( toggleAddress() ) );
- cEMail = new <a href="qcheckbox.html">TQCheckBox</a>( "&amp;E-Mail", search );
- cEMail-&gt;<a href="qwidget.html#resize">resize</a>( cEMail-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>() );
+ cEMail = new <a href="ntqcheckbox.html">TQCheckBox</a>( "&amp;E-Mail", search );
+ cEMail-&gt;<a href="ntqwidget.html#resize">resize</a>( cEMail-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>() );
grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cEMail, 0, 3 );
- <a href="qobject.html#connect">connect</a>( cEMail, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( toggleEMail() ) );
+ <a href="ntqobject.html#connect">connect</a>( cEMail, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( toggleEMail() ) );
- sFirstName = new <a href="qlineedit.html">TQLineEdit</a>( search );
- sFirstName-&gt;<a href="qwidget.html#resize">resize</a>( sFirstName-&gt;<a href="qlineedit.html#sizeHint">sizeHint</a>() );
+ sFirstName = new <a href="ntqlineedit.html">TQLineEdit</a>( search );
+ sFirstName-&gt;<a href="ntqwidget.html#resize">resize</a>( sFirstName-&gt;<a href="ntqlineedit.html#sizeHint">sizeHint</a>() );
grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( sFirstName, 1, 0 );
- sLastName = new <a href="qlineedit.html">TQLineEdit</a>( search );
- sLastName-&gt;<a href="qwidget.html#resize">resize</a>( sLastName-&gt;<a href="qlineedit.html#sizeHint">sizeHint</a>() );
+ sLastName = new <a href="ntqlineedit.html">TQLineEdit</a>( search );
+ sLastName-&gt;<a href="ntqwidget.html#resize">resize</a>( sLastName-&gt;<a href="ntqlineedit.html#sizeHint">sizeHint</a>() );
grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( sLastName, 1, 1 );
- sAddress = new <a href="qlineedit.html">TQLineEdit</a>( search );
- sAddress-&gt;<a href="qwidget.html#resize">resize</a>( sAddress-&gt;<a href="qlineedit.html#sizeHint">sizeHint</a>() );
+ sAddress = new <a href="ntqlineedit.html">TQLineEdit</a>( search );
+ sAddress-&gt;<a href="ntqwidget.html#resize">resize</a>( sAddress-&gt;<a href="ntqlineedit.html#sizeHint">sizeHint</a>() );
grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( sAddress, 1, 2 );
- sEMail = new <a href="qlineedit.html">TQLineEdit</a>( search );
- sEMail-&gt;<a href="qwidget.html#resize">resize</a>( sEMail-&gt;<a href="qlineedit.html#sizeHint">sizeHint</a>() );
+ sEMail = new <a href="ntqlineedit.html">TQLineEdit</a>( search );
+ sEMail-&gt;<a href="ntqwidget.html#resize">resize</a>( sEMail-&gt;<a href="ntqlineedit.html#sizeHint">sizeHint</a>() );
grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( sEMail, 1, 3 );
- find = new <a href="qpushbutton.html">TQPushButton</a>( "F&amp;ind", search );
- find-&gt;<a href="qwidget.html#resize">resize</a>( find-&gt;<a href="qwidget.html#sizeHint">sizeHint</a>() );
+ find = new <a href="ntqpushbutton.html">TQPushButton</a>( "F&amp;ind", search );
+ find-&gt;<a href="ntqwidget.html#resize">resize</a>( find-&gt;<a href="ntqwidget.html#sizeHint">sizeHint</a>() );
grid2-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( find, 1, 4 );
- <a href="qobject.html#connect">connect</a>( find, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( findEntries() ) );
+ <a href="ntqobject.html#connect">connect</a>( find, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( findEntries() ) );
-<a name="x574"></a> cFirstName-&gt;<a href="qcheckbox.html#setChecked">setChecked</a>( TRUE );
-<a name="x605"></a> sFirstName-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( TRUE );
- sLastName-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
- sAddress-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
- sEMail-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
+<a name="x574"></a> cFirstName-&gt;<a href="ntqcheckbox.html#setChecked">setChecked</a>( TRUE );
+<a name="x605"></a> sFirstName-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE );
+ sLastName-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
+ sAddress-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
+ sEMail-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
- tabWidget-&gt;<a href="qtabwidget.html#addTab">addTab</a>( search, "&amp;Search" );
+ tabWidget-&gt;<a href="ntqtabwidget.html#addTab">addTab</a>( search, "&amp;Search" );
mainGrid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tabWidget, 0, 0 );
}
void <a name="f278"></a>ABCentralWidget::setupListView()
{
- listView = new <a href="qlistview.html">TQListView</a>( this );
-<a name="x585"></a> listView-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "First Name" );
- listView-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "Last Name" );
- listView-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "Address" );
- listView-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "E-Mail" );
+ 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" );
-<a name="x592"></a> listView-&gt;<a href="qlistview.html#setSelectionMode">setSelectionMode</a>( TQListView::Single );
+<a name="x592"></a> listView-&gt;<a href="ntqlistview.html#setSelectionMode">setSelectionMode</a>( TQListView::Single );
-<a name="x588"></a> <a href="qobject.html#connect">connect</a>( listView, SIGNAL( <a href="qlistview.html#clicked">clicked</a>( <a href="qlistviewitem.html">TQListViewItem</a>* ) ), this, SLOT( itemSelected( <a href="qlistviewitem.html">TQListViewItem</a>* ) ) );
+<a name="x588"></a> <a href="ntqobject.html#connect">connect</a>( listView, SIGNAL( <a href="ntqlistview.html#clicked">clicked</a>( <a href="qlistviewitem.html">TQListViewItem</a>* ) ), this, SLOT( itemSelected( <a href="qlistviewitem.html">TQListViewItem</a>* ) ) );
mainGrid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( listView, 1, 0 );
-<a name="x591"></a> listView-&gt;<a href="qlistview.html#setAllColumnsShowFocus">setAllColumnsShowFocus</a>( TRUE );
+<a name="x591"></a> listView-&gt;<a href="ntqlistview.html#setAllColumnsShowFocus">setAllColumnsShowFocus</a>( TRUE );
}
void <a name="f279"></a>ABCentralWidget::addEntry()
{
-<a name="x584"></a> if ( !iFirstName-&gt;<a href="qlineedit.html#text">text</a>().isEmpty() || !iLastName-&gt;<a href="qlineedit.html#text">text</a>().isEmpty() ||
- !iAddress-&gt;<a href="qlineedit.html#text">text</a>().isEmpty() || !iEMail-&gt;<a href="qlineedit.html#text">text</a>().isEmpty() ) {
+<a name="x584"></a> if ( !iFirstName-&gt;<a href="ntqlineedit.html#text">text</a>().isEmpty() || !iLastName-&gt;<a href="ntqlineedit.html#text">text</a>().isEmpty() ||
+ !iAddress-&gt;<a href="ntqlineedit.html#text">text</a>().isEmpty() || !iEMail-&gt;<a href="ntqlineedit.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="qlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 1, iLastName-&gt;<a href="qlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 2, iAddress-&gt;<a href="qlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 3, iEMail-&gt;<a href="qlineedit.html#text">text</a>() );
+ item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 0, iFirstName-&gt;<a href="ntqlineedit.html#text">text</a>() );
+ item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 1, iLastName-&gt;<a href="ntqlineedit.html#text">text</a>() );
+ item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 2, iAddress-&gt;<a href="ntqlineedit.html#text">text</a>() );
+ item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 3, iEMail-&gt;<a href="ntqlineedit.html#text">text</a>() );
}
-<a name="x582"></a> iFirstName-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
- iLastName-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
- iAddress-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
- iEMail-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
+<a name="x582"></a> iFirstName-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
+ iLastName-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
+ iAddress-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
+ iEMail-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
}
void <a name="f280"></a>ABCentralWidget::changeEntry()
{
-<a name="x589"></a> <a href="qlistviewitem.html">TQListViewItem</a> *item = listView-&gt;<a href="qlistview.html#currentItem">currentItem</a>();
+<a name="x589"></a> <a href="qlistviewitem.html">TQListViewItem</a> *item = listView-&gt;<a href="ntqlistview.html#currentItem">currentItem</a>();
if ( item &amp;&amp;
- ( !iFirstName-&gt;<a href="qlineedit.html#text">text</a>().isEmpty() || !iLastName-&gt;<a href="qlineedit.html#text">text</a>().isEmpty() ||
- !iAddress-&gt;<a href="qlineedit.html#text">text</a>().isEmpty() || !iEMail-&gt;<a href="qlineedit.html#text">text</a>().isEmpty() ) ) {
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 0, iFirstName-&gt;<a href="qlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 1, iLastName-&gt;<a href="qlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 2, iAddress-&gt;<a href="qlineedit.html#text">text</a>() );
- item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 3, iEMail-&gt;<a href="qlineedit.html#text">text</a>() );
+ ( !iFirstName-&gt;<a href="ntqlineedit.html#text">text</a>().isEmpty() || !iLastName-&gt;<a href="ntqlineedit.html#text">text</a>().isEmpty() ||
+ !iAddress-&gt;<a href="ntqlineedit.html#text">text</a>().isEmpty() || !iEMail-&gt;<a href="ntqlineedit.html#text">text</a>().isEmpty() ) ) {
+ item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 0, iFirstName-&gt;<a href="ntqlineedit.html#text">text</a>() );
+ item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 1, iLastName-&gt;<a href="ntqlineedit.html#text">text</a>() );
+ item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 2, iAddress-&gt;<a href="ntqlineedit.html#text">text</a>() );
+ item-&gt;<a href="qlistviewitem.html#setText">setText</a>( 3, iEMail-&gt;<a href="ntqlineedit.html#text">text</a>() );
}
}
void <a name="f281"></a>ABCentralWidget::selectionChanged()
{
- iFirstName-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
- iLastName-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
- iAddress-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
- iEMail-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
+ iFirstName-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
+ iLastName-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
+ iAddress-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
+ iEMail-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
}
void <a name="f282"></a>ABCentralWidget::itemSelected( <a href="qlistviewitem.html">TQListViewItem</a> *item )
@@ -519,67 +519,67 @@ void <a name="f282"></a>ABCentralWidget::itemSelected( <a href="qlistviewitem.ht
<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="x596"></a> iFirstName-&gt;<a href="qlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 0 ) );
- iLastName-&gt;<a href="qlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 1 ) );
- iAddress-&gt;<a href="qlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 2 ) );
- iEMail-&gt;<a href="qlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 3 ) );
+<a name="x596"></a> iFirstName-&gt;<a href="ntqlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 0 ) );
+ iLastName-&gt;<a href="ntqlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 1 ) );
+ iAddress-&gt;<a href="ntqlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 2 ) );
+ iEMail-&gt;<a href="ntqlineedit.html#setText">setText</a>( item-&gt;<a href="qlistviewitem.html#text">text</a>( 3 ) );
}
void <a name="f283"></a>ABCentralWidget::toggleFirstName()
{
- sFirstName-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
+ sFirstName-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
-<a name="x573"></a> if ( cFirstName-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() ) {
- sFirstName-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( TRUE );
-<a name="x606"></a> sFirstName-&gt;<a href="qwidget.html#setFocus">setFocus</a>();
+<a name="x573"></a> if ( cFirstName-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() ) {
+ sFirstName-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE );
+<a name="x606"></a> sFirstName-&gt;<a href="ntqwidget.html#setFocus">setFocus</a>();
}
else
- sFirstName-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
+ sFirstName-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
}
void <a name="f284"></a>ABCentralWidget::toggleLastName()
{
- sLastName-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
+ sLastName-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
- if ( cLastName-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() ) {
- sLastName-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( TRUE );
- sLastName-&gt;<a href="qwidget.html#setFocus">setFocus</a>();
+ if ( cLastName-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() ) {
+ sLastName-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE );
+ sLastName-&gt;<a href="ntqwidget.html#setFocus">setFocus</a>();
}
else
- sLastName-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
+ sLastName-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
}
void <a name="f285"></a>ABCentralWidget::toggleAddress()
{
- sAddress-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
+ sAddress-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
- if ( cAddress-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() ) {
- sAddress-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( TRUE );
- sAddress-&gt;<a href="qwidget.html#setFocus">setFocus</a>();
+ if ( cAddress-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() ) {
+ sAddress-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE );
+ sAddress-&gt;<a href="ntqwidget.html#setFocus">setFocus</a>();
}
else
- sAddress-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
+ sAddress-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
}
void <a name="f286"></a>ABCentralWidget::toggleEMail()
{
- sEMail-&gt;<a href="qlineedit.html#setText">setText</a>( "" );
+ sEMail-&gt;<a href="ntqlineedit.html#setText">setText</a>( "" );
- if ( cEMail-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() ) {
- sEMail-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( TRUE );
- sEMail-&gt;<a href="qwidget.html#setFocus">setFocus</a>();
+ if ( cEMail-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() ) {
+ sEMail-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE );
+ sEMail-&gt;<a href="ntqwidget.html#setFocus">setFocus</a>();
}
else
- sEMail-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
+ sEMail-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
}
void <a name="f287"></a>ABCentralWidget::findEntries()
{
- if ( !cFirstName-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() &amp;&amp;
- !cLastName-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() &amp;&amp;
- !cAddress-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() &amp;&amp;
- !cEMail-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() ) {
-<a name="x587"></a> listView-&gt;<a href="qlistview.html#clearSelection">clearSelection</a>();
+ if ( !cFirstName-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() &amp;&amp;
+ !cLastName-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() &amp;&amp;
+ !cAddress-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() &amp;&amp;
+ !cEMail-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() ) {
+<a name="x587"></a> listView-&gt;<a href="ntqlistview.html#clearSelection">clearSelection</a>();
return;
}
@@ -588,26 +588,26 @@ void <a name="f287"></a>ABCentralWidget::findEntries()
for ( ; it.<a href="qlistviewitemiterator.html#current">current</a>(); ++it ) {
bool select = TRUE;
- if ( cFirstName-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() ) {
- if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 0 ).contains( sFirstName-&gt;<a href="qlineedit.html#text">text</a>() ) )
+ if ( cFirstName-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() ) {
+ if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 0 ).contains( sFirstName-&gt;<a href="ntqlineedit.html#text">text</a>() ) )
select = TRUE;
else
select = FALSE;
}
- if ( cLastName-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() ) {
- if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 1 ).contains( sLastName-&gt;<a href="qlineedit.html#text">text</a>() ) )
+ if ( cLastName-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() ) {
+ if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 1 ).contains( sLastName-&gt;<a href="ntqlineedit.html#text">text</a>() ) )
select = TRUE;
else
select = FALSE;
}
- if ( cAddress-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() ) {
- if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 2 ).contains( sAddress-&gt;<a href="qlineedit.html#text">text</a>() ) )
+ if ( cAddress-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() ) {
+ if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 2 ).contains( sAddress-&gt;<a href="ntqlineedit.html#text">text</a>() ) )
select = TRUE;
else
select = FALSE;
}
- if ( cEMail-&gt;<a href="qcheckbox.html#isChecked">isChecked</a>() ) {
- if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 3 ).contains( sEMail-&gt;<a href="qlineedit.html#text">text</a>() ) )
+ if ( cEMail-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() ) {
+ if ( select &amp;&amp; it.<a href="qlistviewitemiterator.html#current">current</a>()-&gt;text( 3 ).contains( sEMail-&gt;<a href="ntqlineedit.html#text">text</a>() ) )
select = TRUE;
else
select = FALSE;
@@ -634,21 +634,21 @@ void <a name="f287"></a>ABCentralWidget::findEntries()
**
*****************************************************************************/
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include "mainwindow.h"
int main( int argc, char ** argv )
{
- <a href="qapplication.html">TQApplication</a> a( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
ABMainWindow *mw = new ABMainWindow();
- mw-&gt;<a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Addressbook" );
- a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( mw );
-<a name="x611"></a> mw-&gt;<a href="qwidget.html#show">show</a>();
+ mw-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Addressbook" );
+ a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( mw );
+<a name="x611"></a> mw-&gt;<a href="ntqwidget.html#show">show</a>();
-<a name="x609"></a><a name="x608"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL( <a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>() ), &amp;a, SLOT( <a href="qapplication.html#quit">quit</a>() ) );
- int result = a.<a href="qapplication.html#exec">exec</a>();
+<a name="x609"></a><a name="x608"></a> a.<a href="ntqobject.html#connect">connect</a>( &amp;a, SIGNAL( <a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>() ), &amp;a, SLOT( <a href="ntqapplication.html#quit">quit</a>() ) );
+ int result = a.<a href="ntqapplication.html#exec">exec</a>();
delete mw;
return result;
}