diff options
author | Michele Calgaro <[email protected]> | 2024-06-06 13:44:12 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-06-06 13:52:29 +0900 |
commit | e6077c30d14e9d662e8843c554db86c0d366d0b6 (patch) | |
tree | 672319afee32f0316bad258c0e9a1e0dd737bd61 /doc/html/helpsystem-example.html | |
parent | 8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (diff) | |
download | tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.tar.gz tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.zip |
Rename str nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/helpsystem-example.html')
-rw-r--r-- | doc/html/helpsystem-example.html | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/doc/html/helpsystem-example.html b/doc/html/helpsystem-example.html index bbb45097f..823f244f9 100644 --- a/doc/html/helpsystem-example.html +++ b/doc/html/helpsystem-example.html @@ -98,7 +98,7 @@ to the <a href="ntqtooltip.html">TQToolTip</a> constructor. else section = header-><a href="ntqheader.html#sectionAt">sectionAt</a>( header-><a href="ntqheader.html#offset">offset</a>() + p.<a href="ntqpoint.html#y">y</a>() ); - <a name="x2674"></a> <a href="ntqstring.html">TQString</a> tipString = header-><a href="ntqheader.html#label">label</a>( section ); + <a name="x2674"></a> <a href="tqstring.html">TQString</a> tipString = header-><a href="ntqheader.html#label">label</a>( section ); <a name="x2678"></a> <a href="ntqtooltip.html#tip">tip</a>( header-><a href="ntqheader.html#sectionRect">sectionRect</a>( section ), tipString, "This is a section in a header" ); } </pre> @@ -123,7 +123,7 @@ member with the TQTable pointer itself. <a name="x2680"></a> int row = table->rowAt( cp.<a href="ntqpoint.html#y">y</a>() ); <a name="x2679"></a> int col = table->columnAt( cp.<a href="ntqpoint.html#x">x</a>() ); - <a href="ntqstring.html">TQString</a> tipString = table->text( row, col ); + <a href="tqstring.html">TQString</a> tipString = table->text( row, col ); <a href="ntqrect.html">TQRect</a> cr = table->cellGeometry( row, col ); </pre> @@ -149,11 +149,11 @@ in a tooltip and to provide text for the <a href="qtooltipgroup.html">TQToolTipG public: WhatsThis( <a href="tqwidget.html">TQWidget</a> *w, TQWidget *watch = 0 ); - bool clicked( const <a href="ntqstring.html">TQString</a> &link ); + bool clicked( const <a href="tqstring.html">TQString</a> &link ); <a href="tqwidget.html">TQWidget</a> *parentWidget() const; signals: - void linkClicked( const <a href="ntqstring.html">TQString</a> &link ); + void linkClicked( const <a href="tqstring.html">TQString</a> &link ); private: <a href="tqwidget.html">TQWidget</a> *widget; @@ -182,9 +182,9 @@ is passed to the constructor it will propagate the parameter to the TQWhatsThis constructor and store the <a href="tqwidget.html">TQWidget</a> pointer itself in it's member variable to allow easier use of the TQWidget API later on. -<pre> bool WhatsThis::clicked( const <a href="ntqstring.html">TQString</a> &link ) +<pre> bool WhatsThis::clicked( const <a href="tqstring.html">TQString</a> &link ) { - if ( !link.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) + if ( !link.<a href="tqstring.html#isEmpty">isEmpty</a>() ) emit linkClicked( link ); return TRUE; @@ -200,7 +200,7 @@ if a hyperlink has been clicked. public: HeaderWhatsThis( <a href="ntqheader.html">TQHeader</a> *h ); - <a href="ntqstring.html">TQString</a> text( const <a href="ntqpoint.html">TQPoint</a> &p ); + <a href="tqstring.html">TQString</a> text( const <a href="ntqpoint.html">TQPoint</a> &p ); }; </pre> <p> <pre> class TableWhatsThis : public WhatsThis @@ -208,7 +208,7 @@ if a hyperlink has been clicked. public: TableWhatsThis( <a href="ntqtable.html">TQTable</a> *t ); - <a href="ntqstring.html">TQString</a> text( const <a href="ntqpoint.html">TQPoint</a> &p ); + <a href="tqstring.html">TQString</a> text( const <a href="ntqpoint.html">TQPoint</a> &p ); }; </pre> <p> @@ -231,7 +231,7 @@ WhatsThis constructor. { <a href="ntqheader.html">TQHeader</a> *header = (TQHeader*)parentWidget(); - <a href="ntqstring.html">TQString</a> orient; + <a href="tqstring.html">TQString</a> orient; int section; if ( header-><a href="ntqheader.html#orientation">orientation</a>() == TQObject::Horizontal ) { orient = "horizontal"; @@ -242,7 +242,7 @@ WhatsThis constructor. } if( section == -1 ) return "This is empty space."; - <a href="ntqstring.html">TQString</a> docsPath = TQDir("../../doc").absPath(); + <a href="tqstring.html">TQString</a> docsPath = TQDir("../../doc").absPath(); return TQString("This is section number %1 in the %2 <a href=%2/html/ntqheader.html>header</a>."). arg(section + 1). arg(orient). @@ -276,7 +276,7 @@ viewport() to the WhatsThis constructor. if ( !i ) return "This is an empty cell."; - <a href="ntqstring.html">TQString</a> docsPath = TQDir("../../doc").absPath(); + <a href="tqstring.html">TQString</a> docsPath = TQDir("../../doc").absPath(); if ( TQTableItem::RTTI == i-><a href="qtableitem.html#rtti">rtti</a>() ) { return TQString("This is a <a href=%1/html/qtableitem.html>TQTableItem</a>."). @@ -335,13 +335,13 @@ member as well, to allow easier access to TQt Assistant later on. assistant = new <a href="ntqassistantclient.html">TQAssistantClient</a>( TQDir("../../bin").absPath(), this ); </pre> <p> The MainWindow constructor creates an instance of -TQAssistantClient using <a href="ntqstring.html#TQString-null">TQString::null</a> as the first argument +TQAssistantClient using <a href="tqstring.html#TQString-null">TQString::null</a> as the first argument so that the system path is used. <pre> <a href="ntqtable.html">TQTable</a>* table = new <a href="ntqtable.html">TQTable</a>( 2, 3, this ); <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( table ); // populate table - <a href="ntqstringlist.html">TQStringList</a> comboEntries; + <a href="tqstringlist.html">TQStringList</a> comboEntries; comboEntries << "one" << "two" << "three" << "four"; <a href="qcombotableitem.html">TQComboTableItem</a>* comboItem1 = new <a href="qcombotableitem.html">TQComboTableItem</a>( table, comboEntries ); <a href="qcombotableitem.html">TQComboTableItem</a>* comboItem2 = new <a href="qcombotableitem.html">TQComboTableItem</a>( table, comboEntries ); @@ -385,8 +385,8 @@ and the toolbar are populated. which will enter "What's this?" mode when clicked. <pre> //create tooltipgroup <a href="qtooltipgroup.html">TQToolTipGroup</a> * tipGroup = new <a href="qtooltipgroup.html">TQToolTipGroup</a>( this ); - <a name="x2697"></a> <a href="tqobject.html#connect">connect</a>( tipGroup, TQ_SIGNAL(<a href="qtooltipgroup.html#showTip">showTip</a>(const <a href="ntqstring.html">TQString</a>&)), statusBar(), - TQ_SLOT(message(const <a href="ntqstring.html">TQString</a>&)) ); + <a name="x2697"></a> <a href="tqobject.html#connect">connect</a>( tipGroup, TQ_SIGNAL(<a href="qtooltipgroup.html#showTip">showTip</a>(const <a href="tqstring.html">TQString</a>&)), statusBar(), + TQ_SLOT(message(const <a href="tqstring.html">TQString</a>&)) ); <a name="x2696"></a> <a href="tqobject.html#connect">connect</a>( tipGroup, TQ_SIGNAL(<a href="qtooltipgroup.html#removeTip">removeTip</a>()), statusBar(), TQ_SLOT(clear()) ); </pre> <p> A <a href="qtooltipgroup.html">TQToolTipGroup</a> is created and will show and remove tooltips @@ -423,12 +423,12 @@ headers and the table. What's This? help is also added for the menu items. <pre> // connections <a href="tqobject.html#connect">connect</a>( assistantButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(assistantSlot()) ); - <a href="tqobject.html#connect">connect</a>( horizontalWhatsThis, TQ_SIGNAL(linkClicked(const <a href="ntqstring.html">TQString</a>&)), assistant, - TQ_SLOT(<a href="ntqassistantclient.html#showPage">showPage</a>(const <a href="ntqstring.html">TQString</a>&)) ); - <a href="tqobject.html#connect">connect</a>( verticalWhatsThis, TQ_SIGNAL(linkClicked(const <a href="ntqstring.html">TQString</a>&)), assistant, - TQ_SLOT(<a href="ntqassistantclient.html#showPage">showPage</a>(const <a href="ntqstring.html">TQString</a>&)) ); - <a href="tqobject.html#connect">connect</a>( cellWhatsThis, TQ_SIGNAL(linkClicked(const <a href="ntqstring.html">TQString</a>&)), assistant, - TQ_SLOT(<a href="ntqassistantclient.html#showPage">showPage</a>(const <a href="ntqstring.html">TQString</a>&)) ); + <a href="tqobject.html#connect">connect</a>( horizontalWhatsThis, TQ_SIGNAL(linkClicked(const <a href="tqstring.html">TQString</a>&)), assistant, + TQ_SLOT(<a href="ntqassistantclient.html#showPage">showPage</a>(const <a href="tqstring.html">TQString</a>&)) ); + <a href="tqobject.html#connect">connect</a>( verticalWhatsThis, TQ_SIGNAL(linkClicked(const <a href="tqstring.html">TQString</a>&)), assistant, + TQ_SLOT(<a href="ntqassistantclient.html#showPage">showPage</a>(const <a href="tqstring.html">TQString</a>&)) ); + <a href="tqobject.html#connect">connect</a>( cellWhatsThis, TQ_SIGNAL(linkClicked(const <a href="tqstring.html">TQString</a>&)), assistant, + TQ_SLOT(<a href="ntqassistantclient.html#showPage">showPage</a>(const <a href="tqstring.html">TQString</a>&)) ); } </pre> <p> Signals and slots are connected, so that the relevant pages will @@ -447,7 +447,7 @@ a subclass of <a href="tqobject.html">TQObject</a> and the instances of TQToolTi deleted when the widget is deleted. <pre> void MainWindow::assistantSlot() { - <a href="ntqstring.html">TQString</a> docsPath = TQDir("../../doc").absPath(); + <a href="tqstring.html">TQString</a> docsPath = TQDir("../../doc").absPath(); <a name="x2686"></a> assistant-><a href="ntqassistantclient.html#showPage">showPage</a>( TQString("%1/html/ntqassistantclient.html").arg(docsPath) ); } </pre> |