From e6077c30d14e9d662e8843c554db86c0d366d0b6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 6 Jun 2024 13:44:12 +0900 Subject: Rename str nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/helpsystem-example.html | 44 ++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'doc/html/helpsystem-example.html') 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 TQToolTip constructor. else section = header->sectionAt( header->offset() + p.y() ); - TQString tipString = header->label( section ); + TQString tipString = header->label( section ); tip( header->sectionRect( section ), tipString, "This is a section in a header" ); } @@ -123,7 +123,7 @@ member with the TQTable pointer itself. int row = table->rowAt( cp.y() ); int col = table->columnAt( cp.x() ); - TQString tipString = table->text( row, col ); + TQString tipString = table->text( row, col ); TQRect cr = table->cellGeometry( row, col ); @@ -149,11 +149,11 @@ in a tooltip and to provide text for the TQToolTipG public: WhatsThis( TQWidget *w, TQWidget *watch = 0 ); - bool clicked( const TQString &link ); + bool clicked( const TQString &link ); TQWidget *parentWidget() const; signals: - void linkClicked( const TQString &link ); + void linkClicked( const TQString &link ); private: TQWidget *widget; @@ -182,9 +182,9 @@ is passed to the constructor it will propagate the parameter to the TQWhatsThis constructor and store the TQWidget pointer itself in it's member variable to allow easier use of the TQWidget API later on. -
    bool WhatsThis::clicked( const TQString &link )
+
    bool WhatsThis::clicked( const TQString &link )
     {
-        if ( !link.isEmpty() )
+        if ( !link.isEmpty() )
             emit linkClicked( link );
 
         return TRUE;
@@ -200,7 +200,7 @@ if a hyperlink has been clicked.
     public:
         HeaderWhatsThis( TQHeader *h );
 
-        TQString text( const TQPoint &p );
+        TQString text( const TQPoint &p );
     };
 

    class TableWhatsThis : public WhatsThis
@@ -208,7 +208,7 @@ if a hyperlink has been clicked.
     public:
         TableWhatsThis( TQTable *t );
 
-        TQString text( const TQPoint &p );
+        TQString text( const TQPoint &p );
     };
 

@@ -231,7 +231,7 @@ WhatsThis constructor. { TQHeader *header = (TQHeader*)parentWidget(); - TQString orient; + TQString orient; int section; if ( header->orientation() == TQObject::Horizontal ) { orient = "horizontal"; @@ -242,7 +242,7 @@ WhatsThis constructor. } if( section == -1 ) return "This is empty space."; - TQString docsPath = TQDir("../../doc").absPath(); + TQString 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."; - TQString docsPath = TQDir("../../doc").absPath(); + TQString docsPath = TQDir("../../doc").absPath(); if ( TQTableItem::RTTI == i->rtti() ) { 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 TQAssistantClient( TQDir("../../bin").absPath(), this );

The MainWindow constructor creates an instance of -TQAssistantClient using TQString::null as the first argument +TQAssistantClient using TQString::null as the first argument so that the system path is used.

        TQTable* table = new TQTable( 2, 3, this );
         setCentralWidget( table );
 
         // populate table
-        TQStringList comboEntries;
+        TQStringList comboEntries;
         comboEntries << "one" << "two" << "three" << "four";
         TQComboTableItem* comboItem1 = new TQComboTableItem( table, comboEntries );
         TQComboTableItem* comboItem2 = new TQComboTableItem( table, comboEntries );
@@ -385,8 +385,8 @@ and the toolbar are populated.
 which will enter "What's this?" mode when clicked.
 
        //create tooltipgroup
         TQToolTipGroup * tipGroup = new TQToolTipGroup( this );
-        connect( tipGroup, TQ_SIGNAL(showTip(const TQString&)), statusBar(),
-            TQ_SLOT(message(const TQString&)) );
+        connect( tipGroup, TQ_SIGNAL(showTip(const TQString&)), statusBar(),
+            TQ_SLOT(message(const TQString&)) );
         connect( tipGroup, TQ_SIGNAL(removeTip()), statusBar(), TQ_SLOT(clear()) );
 

A TQToolTipGroup 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.

        // connections
         connect( assistantButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(assistantSlot()) );
-        connect( horizontalWhatsThis, TQ_SIGNAL(linkClicked(const TQString&)), assistant,
-            TQ_SLOT(showPage(const TQString&)) );
-        connect( verticalWhatsThis, TQ_SIGNAL(linkClicked(const TQString&)), assistant,
-            TQ_SLOT(showPage(const TQString&)) );
-        connect( cellWhatsThis, TQ_SIGNAL(linkClicked(const TQString&)), assistant,
-            TQ_SLOT(showPage(const TQString&)) );
+        connect( horizontalWhatsThis, TQ_SIGNAL(linkClicked(const TQString&)), assistant,
+            TQ_SLOT(showPage(const TQString&)) );
+        connect( verticalWhatsThis, TQ_SIGNAL(linkClicked(const TQString&)), assistant,
+            TQ_SLOT(showPage(const TQString&)) );
+        connect( cellWhatsThis, TQ_SIGNAL(linkClicked(const TQString&)), assistant,
+            TQ_SLOT(showPage(const TQString&)) );
     }
 

Signals and slots are connected, so that the relevant pages will @@ -447,7 +447,7 @@ a subclass of TQObject and the instances of TQToolTi deleted when the widget is deleted.

    void MainWindow::assistantSlot()
     {
-        TQString docsPath = TQDir("../../doc").absPath();
+        TQString docsPath = TQDir("../../doc").absPath();
         assistant->showPage( TQString("%1/html/ntqassistantclient.html").arg(docsPath) );
     }
 
-- cgit v1.2.3