diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:44:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 13:52:29 +0900 |
commit | e6077c30d14e9d662e8843c554db86c0d366d0b6 (patch) | |
tree | 672319afee32f0316bad258c0e9a1e0dd737bd61 /doc/html/helpviewer-example.html | |
parent | 8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (diff) | |
download | tqt-e6077c30d14e9d662e8843c554db86c0d366d0b6.tar.gz tqt-e6077c30d14e9d662e8843c554db86c0d366d0b6.zip |
Rename str nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/helpviewer-example.html')
-rw-r--r-- | doc/html/helpviewer-example.html | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/doc/html/helpviewer-example.html b/doc/html/helpviewer-example.html index b108de02e..b4b0068fe 100644 --- a/doc/html/helpviewer-example.html +++ b/doc/html/helpviewer-example.html @@ -52,7 +52,7 @@ TQt's richtext capabilities. #include <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> #include <<a href="qtextbrowser-h.html">ntqtextbrowser.h</a>> -#include <<a href="qstringlist-h.html">ntqstringlist.h</a>> +#include <<a href="tqstringlist-h.html">tqstringlist.h</a>> #include <<a href="tqmap-h.html">tqmap.h</a>> #include <<a href="qdir-h.html">ntqdir.h</a>> @@ -63,21 +63,21 @@ class HelpWindow : public <a href="ntqmainwindow.html">TQMainWindow</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> public: - HelpWindow( const <a href="ntqstring.html">TQString</a>& home_, const <a href="ntqstring.html">TQString</a>& path, TQWidget* parent = 0, const char *name=0 ); + HelpWindow( const <a href="tqstring.html">TQString</a>& home_, const <a href="tqstring.html">TQString</a>& path, TQWidget* parent = 0, const char *name=0 ); ~HelpWindow(); private slots: void setBackwardAvailable( bool ); void setForwardAvailable( bool ); - void sourceChanged( const <a href="ntqstring.html">TQString</a>& ); + void sourceChanged( const <a href="tqstring.html">TQString</a>& ); void about(); void aboutTQt(); void openFile(); void newWindow(); void print(); - void pathSelected( const <a href="ntqstring.html">TQString</a> & ); + void pathSelected( const <a href="tqstring.html">TQString</a> & ); void histChosen( int ); void bookmChosen( int ); void addBookmark(); @@ -89,7 +89,7 @@ private: <a href="ntqtextbrowser.html">TQTextBrowser</a>* browser; <a href="ntqcombobox.html">TQComboBox</a> *pathCombo; int backwardId, forwardId; - <a href="ntqstringlist.html">TQStringList</a> history, bookmarks; + <a href="tqstringlist.html">TQStringList</a> history, bookmarks; <a href="tqmap.html">TQMap</a><int, TQString> mHistory, mBookmarks; <a href="ntqpopupmenu.html">TQPopupMenu</a> *hist, *bookm; @@ -143,7 +143,7 @@ private: #include <ctype.h> -<a name="f350"></a>HelpWindow::HelpWindow( const <a href="ntqstring.html">TQString</a>& home_, const <a href="ntqstring.html">TQString</a>& _path, +<a name="f350"></a>HelpWindow::HelpWindow( const <a href="tqstring.html">TQString</a>& home_, const <a href="tqstring.html">TQString</a>& _path, <a href="tqwidget.html">TQWidget</a>* parent, const char *name ) : <a href="ntqmainwindow.html">TQMainWindow</a>( parent, name, WDestructiveClose ), pathCombo( 0 ) @@ -155,16 +155,16 @@ private: <a name="x1030"></a> browser-><a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>()->setFilePath( _path ); browser-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken ); -<a name="x1027"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="ntqtextbrowser.html#sourceChanged">sourceChanged</a>(const <a href="ntqstring.html">TQString</a>& ) ), - this, TQ_SLOT( sourceChanged( const <a href="ntqstring.html">TQString</a>&) ) ); +<a name="x1027"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="ntqtextbrowser.html#sourceChanged">sourceChanged</a>(const <a href="tqstring.html">TQString</a>& ) ), + this, TQ_SLOT( sourceChanged( const <a href="tqstring.html">TQString</a>&) ) ); <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( browser ); - if ( !home_.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) + if ( !home_.<a href="tqstring.html#isEmpty">isEmpty</a>() ) <a name="x1025"></a> browser-><a href="ntqtextbrowser.html#setSource">setSource</a>( home_ ); -<a name="x1023"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="ntqtextbrowser.html#highlighted">highlighted</a>( const <a href="ntqstring.html">TQString</a>&) ), - <a href="ntqmainwindow.html#statusBar">statusBar</a>(), TQ_SLOT( message( const <a href="ntqstring.html">TQString</a>&)) ); +<a name="x1023"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="ntqtextbrowser.html#highlighted">highlighted</a>( const <a href="tqstring.html">TQString</a>&) ), + <a href="ntqmainwindow.html#statusBar">statusBar</a>(), TQ_SLOT( message( const <a href="tqstring.html">TQString</a>&)) ); <a href="tqwidget.html#resize">resize</a>( 640,700 ); @@ -241,8 +241,8 @@ private: <a name="x1033"></a> toolbar-><a href="ntqtoolbar.html#addSeparator">addSeparator</a>(); pathCombo = new <a href="ntqcombobox.html">TQComboBox</a>( TRUE, toolbar ); -<a name="x981"></a> <a href="tqobject.html#connect">connect</a>( pathCombo, TQ_SIGNAL( <a href="ntqcombobox.html#activated">activated</a>( const <a href="ntqstring.html">TQString</a> & ) ), - this, TQ_SLOT( pathSelected( const <a href="ntqstring.html">TQString</a> & ) ) ); +<a name="x981"></a> <a href="tqobject.html#connect">connect</a>( pathCombo, TQ_SIGNAL( <a href="ntqcombobox.html#activated">activated</a>( const <a href="tqstring.html">TQString</a> & ) ), + this, TQ_SLOT( pathSelected( const <a href="tqstring.html">TQString</a> & ) ) ); <a name="x1034"></a> toolbar-><a href="ntqtoolbar.html#setStretchableWidget">setStretchableWidget</a>( pathCombo ); <a href="ntqmainwindow.html#setRightJustification">setRightJustification</a>( TRUE ); <a href="ntqmainwindow.html#setDockEnabled">setDockEnabled</a>( DockLeft, FALSE ); @@ -265,14 +265,14 @@ void <a name="f352"></a>HelpWindow::setForwardAvailable( bool b) } -void <a name="f353"></a>HelpWindow::sourceChanged( const <a href="ntqstring.html">TQString</a>& url ) +void <a name="f353"></a>HelpWindow::sourceChanged( const <a href="tqstring.html">TQString</a>& url ) { <a name="x1029"></a> if ( browser-><a href="ntqtextedit.html#documentTitle">documentTitle</a>().isNull() ) <a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Helpviewer - " + url ); else <a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Helpviewer - " + browser-><a href="ntqtextedit.html#documentTitle">documentTitle</a>() ) ; - if ( !url.<a href="ntqstring.html#isEmpty">isEmpty</a>() && pathCombo ) { + if ( !url.<a href="tqstring.html#isEmpty">isEmpty</a>() && pathCombo ) { bool exists = FALSE; int i; <a name="x982"></a> for ( i = 0; i < pathCombo-><a href="ntqcombobox.html#count">count</a>(); ++i ) { @@ -327,8 +327,8 @@ void <a name="f355"></a>HelpWindow::aboutTQt() void <a name="f356"></a>HelpWindow::openFile() { #ifndef TQT_NO_FILEDIALOG - <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="ntqstring.html#TQString-null">TQString::null</a>, TQString::null, this ); - if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) + <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="tqstring.html#TQString-null">TQString::null</a>, TQString::null, this ); + if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) browser-><a href="ntqtextbrowser.html#setSource">setSource</a>( fn ); #endif } @@ -363,7 +363,7 @@ void <a name="f358"></a>HelpWindow::print() <a name="x1014"></a> richText.<a href="ntqsimplerichtext.html#draw">draw</a>( &p, margin, margin, view, colorGroup() ); <a name="x1010"></a> view.<a href="ntqrect.html#moveBy">moveBy</a>( 0, view.<a href="ntqrect.html#height">height</a>() ); p.<a href="ntqpainter.html#translate">translate</a>( 0 , -view.<a href="ntqrect.html#height">height</a>() ); -<a name="x1018"></a><a name="x1001"></a> p.<a href="ntqpainter.html#drawText">drawText</a>( view.<a href="ntqrect.html#right">right</a>() - p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().width( TQString::<a href="ntqstring.html#number">number</a>(page) ), +<a name="x1018"></a><a name="x1001"></a> p.<a href="ntqpainter.html#drawText">drawText</a>( view.<a href="ntqrect.html#right">right</a>() - p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().width( TQString::<a href="tqstring.html#number">number</a>(page) ), <a name="x1008"></a> view.<a href="ntqrect.html#bottom">bottom</a>() + p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().ascent() + 5, TQString::number(page) ); <a name="x1015"></a> if ( view.<a href="ntqrect.html#top">top</a>() - margin >= richText.<a href="ntqsimplerichtext.html#height">height</a>() ) break; @@ -374,7 +374,7 @@ void <a name="f358"></a>HelpWindow::print() #endif } -void <a name="f359"></a>HelpWindow::pathSelected( const <a href="ntqstring.html">TQString</a> &_path ) +void <a name="f359"></a>HelpWindow::pathSelected( const <a href="tqstring.html">TQString</a> &_path ) { browser-><a href="ntqtextbrowser.html#setSource">setSource</a>( _path ); if ( mHistory.values().contains(_path) ) @@ -446,7 +446,7 @@ int main( int argc, char ** argv ) <a name="x1041"></a> TQApplication::<a href="ntqapplication.html#setColorSpec">setColorSpec</a>( TQApplication::ManyColor ); <a href="ntqapplication.html">TQApplication</a> a(argc, argv); - <a href="ntqstring.html">TQString</a> home; + <a href="tqstring.html">TQString</a> home; if (argc > 1) { home = argv[1]; } else { |