diff options
Diffstat (limited to 'doc/html/addressbook-example.html')
-rw-r--r-- | doc/html/addressbook-example.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/addressbook-example.html b/doc/html/addressbook-example.html index 278c9057f..957cc0105 100644 --- a/doc/html/addressbook-example.html +++ b/doc/html/addressbook-example.html @@ -51,7 +51,7 @@ using an addressbook as the example. #define AB_MAINWINDOW_H #include <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> -#include <<a href="qstring-h.html">ntqstring.h</a>> +#include <<a href="tqstring-h.html">tqstring.h</a>> class TQToolBar; class TQPopupMenu; @@ -80,7 +80,7 @@ protected: void setupCentralWidget(); <a href="ntqtoolbar.html">TQToolBar</a> *fileTools; - <a href="ntqstring.html">TQString</a> filename; + <a href="tqstring.html">TQString</a> filename; ABCentralWidget *view; }; @@ -114,7 +114,7 @@ protected: <a name="f263"></a>ABMainWindow::ABMainWindow() : <a href="ntqmainwindow.html">TQMainWindow</a>( 0, "example addressbook application" ), - filename( <a href="ntqstring.html#TQString-null">TQString::null</a> ) + filename( <a href="tqstring.html#TQString-null">TQString::null</a> ) { setupMenuBar(); setupFileTools(); @@ -171,8 +171,8 @@ void <a name="f269"></a>ABMainWindow::fileNew() void <a name="f270"></a>ABMainWindow::fileOpen() { -<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>() ) { +<a name="x567"></a> <a href="tqstring.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="tqstring.html#isEmpty">isEmpty</a>() ) { filename = fn; view->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="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>() ) { +<a name="x568"></a> <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this ); + if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) { filename = fn; fileSave(); } @@ -218,7 +218,7 @@ void <a name="f273"></a>ABMainWindow::filePrint() #define AB_CENTRALWIDGET_H #include <<a href="tqwidget-h.html">tqwidget.h</a>> -#include <<a href="qstring-h.html">ntqstring.h</a>> +#include <<a href="tqstring-h.html">tqstring.h</a>> class TQTabWidget; class TQListView; @@ -235,8 +235,8 @@ class ABCentralWidget : public <a href="tqwidget.html">TQWidget</a> public: ABCentralWidget( <a href="tqwidget.html">TQWidget</a> *parent, const char *name = 0 ); - void save( const <a href="ntqstring.html">TQString</a> &filename ); - void load( const <a href="ntqstring.html">TQString</a> &filename ); + void save( const <a href="tqstring.html">TQString</a> &filename ); + void load( const <a href="tqstring.html">TQString</a> &filename ); protected slots: void addEntry(); @@ -304,7 +304,7 @@ protected: mainGrid-><a href="qgridlayout.html#setRowStretch">setRowStretch</a>( 1, 1 ); } -void <a name="f275"></a>ABCentralWidget::save( const <a href="ntqstring.html">TQString</a> &filename ) +void <a name="f275"></a>ABCentralWidget::save( const <a href="tqstring.html">TQString</a> &filename ) { <a name="x590"></a> if ( !listView-><a href="ntqlistview.html#firstChild">firstChild</a>() ) return; @@ -325,7 +325,7 @@ void <a name="f275"></a>ABCentralWidget::save( const <a href="ntqstring.html">TQ f.<a href="ntqfile.html#close">close</a>(); } -void <a name="f276"></a>ABCentralWidget::load( const <a href="ntqstring.html">TQString</a> &filename ) +void <a name="f276"></a>ABCentralWidget::load( const <a href="tqstring.html">TQString</a> &filename ) { <a name="x586"></a> listView-><a href="ntqlistview.html#clear">clear</a>(); |