From 0917fbb5387978eb7b2e2fd68bcb6beaa8c46505 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 25 Aug 2024 15:36:25 +0900 Subject: Rename remaining ntq[a-c]* related files to equivalent tq* (except ntqapplication.h and ntqconfig.h) Signed-off-by: Michele Calgaro --- doc/html/helpsystem-example.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/html/helpsystem-example.html') diff --git a/doc/html/helpsystem-example.html b/doc/html/helpsystem-example.html index 386b1cdbc..de203396e 100644 --- a/doc/html/helpsystem-example.html +++ b/doc/html/helpsystem-example.html @@ -40,7 +40,7 @@ in an application.

It uses TQToolTip and TQWhatsThis to provide both static and dynamic balloon help for the widgets in the application, and TQToolTipGroup to display extended information for each tooltip -in the statusbar. TQAssistantClient is used to display help +in the statusbar. TQAssistantClient is used to display help pages using TQt Assistant.

The application has a user interface based on a TQMainWindow with a menubar, statusbar and a toolbar, and uses @@ -315,7 +315,7 @@ and return a string accordingly. HeaderToolTip *horizontalTip; HeaderToolTip *verticalTip; TableToolTip *cellTip; - TQAssistantClient *assistant; + TQAssistantClient *assistant; };

A TQMainWindow is used to create a user interface that uses the @@ -325,14 +325,14 @@ sensitive help in the application. which creates an instance of TQt Assistant when it is called. The class keeps references to the tooltip classes as members because they are not TQObjects and need to be deleted explicitly. -The class has a reference to TQAssistantClient as a +The class has a reference to TQAssistantClient as a member as well, to allow easier access to TQt Assistant later on.

    MainWindow::MainWindow()
     {
         statusBar();
-        assistant = new TQAssistantClient( TQDir("../../bin").absPath(), this );
+        assistant = new TQAssistantClient( TQDir("../../bin").absPath(), this );
 

The MainWindow constructor creates an instance of TQAssistantClient using TQString::null as the first argument @@ -424,11 +424,11 @@ 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&)) );
+            TQ_SLOT(showPage(const TQString&)) );
         connect( verticalWhatsThis, TQ_SIGNAL(linkClicked(const TQString&)), assistant,
-            TQ_SLOT(showPage(const TQString&)) );
+            TQ_SLOT(showPage(const TQString&)) );
         connect( cellWhatsThis, TQ_SIGNAL(linkClicked(const TQString&)), assistant,
-            TQ_SLOT(showPage(const TQString&)) );
+            TQ_SLOT(showPage(const TQString&)) );
     }
 

Signals and slots are connected, so that the relevant pages will @@ -448,7 +448,7 @@ deleted when the widget is deleted.

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

The assistantSlot() uses applicationDirPath() to find the -- cgit v1.2.3