summaryrefslogtreecommitdiffstats
path: root/doc/html/helpviewer-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/helpviewer-example.html')
-rw-r--r--doc/html/helpviewer-example.html40
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 &lt;<a href="qmainwindow-h.html">ntqmainwindow.h</a>&gt;
#include &lt;<a href="qtextbrowser-h.html">ntqtextbrowser.h</a>&gt;
-#include &lt;<a href="qstringlist-h.html">ntqstringlist.h</a>&gt;
+#include &lt;<a href="tqstringlist-h.html">tqstringlist.h</a>&gt;
#include &lt;<a href="tqmap-h.html">tqmap.h</a>&gt;
#include &lt;<a href="qdir-h.html">ntqdir.h</a>&gt;
@@ -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>&amp; home_, const <a href="ntqstring.html">TQString</a>&amp; path, TQWidget* parent = 0, const char *name=0 );
+ HelpWindow( const <a href="tqstring.html">TQString</a>&amp; home_, const <a href="tqstring.html">TQString</a>&amp; 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>&amp; );
+ void sourceChanged( const <a href="tqstring.html">TQString</a>&amp; );
void about();
void aboutTQt();
void openFile();
void newWindow();
void print();
- void pathSelected( const <a href="ntqstring.html">TQString</a> &amp; );
+ void pathSelected( const <a href="tqstring.html">TQString</a> &amp; );
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>&lt;int, TQString&gt; mHistory, mBookmarks;
<a href="ntqpopupmenu.html">TQPopupMenu</a> *hist, *bookm;
@@ -143,7 +143,7 @@ private:
#include &lt;ctype.h&gt;
-<a name="f350"></a>HelpWindow::HelpWindow( const <a href="ntqstring.html">TQString</a>&amp; home_, const <a href="ntqstring.html">TQString</a>&amp; _path,
+<a name="f350"></a>HelpWindow::HelpWindow( const <a href="tqstring.html">TQString</a>&amp; home_, const <a href="tqstring.html">TQString</a>&amp; _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-&gt;<a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>()-&gt;setFilePath( _path );
browser-&gt;<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>&amp; ) ),
- this, TQ_SLOT( sourceChanged( const <a href="ntqstring.html">TQString</a>&amp;) ) );
+<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>&amp; ) ),
+ this, TQ_SLOT( sourceChanged( const <a href="tqstring.html">TQString</a>&amp;) ) );
<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-&gt;<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>&amp;) ),
- <a href="ntqmainwindow.html#statusBar">statusBar</a>(), TQ_SLOT( message( const <a href="ntqstring.html">TQString</a>&amp;)) );
+<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>&amp;) ),
+ <a href="ntqmainwindow.html#statusBar">statusBar</a>(), TQ_SLOT( message( const <a href="tqstring.html">TQString</a>&amp;)) );
<a href="tqwidget.html#resize">resize</a>( 640,700 );
@@ -241,8 +241,8 @@ private:
<a name="x1033"></a> toolbar-&gt;<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> &amp; ) ),
- this, TQ_SLOT( pathSelected( const <a href="ntqstring.html">TQString</a> &amp; ) ) );
+<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> &amp; ) ),
+ this, TQ_SLOT( pathSelected( const <a href="tqstring.html">TQString</a> &amp; ) ) );
<a name="x1034"></a> toolbar-&gt;<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>&amp; url )
+void <a name="f353"></a>HelpWindow::sourceChanged( const <a href="tqstring.html">TQString</a>&amp; url )
{
<a name="x1029"></a> if ( browser-&gt;<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-&gt;<a href="ntqtextedit.html#documentTitle">documentTitle</a>() ) ;
- if ( !url.<a href="ntqstring.html#isEmpty">isEmpty</a>() &amp;&amp; pathCombo ) {
+ if ( !url.<a href="tqstring.html#isEmpty">isEmpty</a>() &amp;&amp; pathCombo ) {
bool exists = FALSE;
int i;
<a name="x982"></a> for ( i = 0; i &lt; pathCombo-&gt;<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-&gt;<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>( &amp;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 &gt;= 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> &amp;_path )
+void <a name="f359"></a>HelpWindow::pathSelected( const <a href="tqstring.html">TQString</a> &amp;_path )
{
browser-&gt;<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 &gt; 1) {
home = argv[1];
} else {