summaryrefslogtreecommitdiffstats
path: root/examples/helpsystem
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-02 21:37:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-06 11:24:55 +0900
commit7552c6d73043b1040139033f6864db48ae5446cf (patch)
treef90d24d072dd3ee6a3f909bf7778abc7669f03ef /examples/helpsystem
parentc113da2069b66130f67a0f27c699e1cec83588a5 (diff)
downloadtqt3-7552c6d73043b1040139033f6864db48ae5446cf.tar.gz
tqt3-7552c6d73043b1040139033f6864db48ae5446cf.zip
Rename main window nt* related files to equivalent tq*. The file
"ntqsession.h" was totally unnecessary and has been removed. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/helpsystem')
-rw-r--r--examples/helpsystem/helpsystem.doc40
-rw-r--r--examples/helpsystem/mainwindow.cpp12
-rw-r--r--examples/helpsystem/mainwindow.h2
-rw-r--r--examples/helpsystem/tooltip.cpp2
-rw-r--r--examples/helpsystem/tooltip.h2
5 files changed, 29 insertions, 29 deletions
diff --git a/examples/helpsystem/helpsystem.doc b/examples/helpsystem/helpsystem.doc
index 80e96c7cb..89107b08e 100644
--- a/examples/helpsystem/helpsystem.doc
+++ b/examples/helpsystem/helpsystem.doc
@@ -8,26 +8,26 @@
that can be used to provide context sensitive help
in an application.
- It uses QToolTip and QWhatsThis to provide both static and
+ It uses TQToolTip and QWhatsThis to provide both static and
dynamic balloon help for the widgets in the application, and
- QToolTipGroup to display extended information for each tooltip
+ TQToolTipGroup to display extended information for each tooltip
in the statusbar. QAssistantClient is used to display help
pages using TQt Assistant.
The application has a user interface based on a
- QMainWindow with a menubar, statusbar and a toolbar, and uses
+ TQMainWindow with a menubar, statusbar and a toolbar, and uses
a QTable as the central widget.
\quotefile helpsystem/tooltip.h
- \skipto : public QToolTip
+ \skipto : public TQToolTip
\printuntil };
- Two QToolTip subclasses implement dynamic tooltips for
+ Two TQToolTip subclasses implement dynamic tooltips for
QHeader and QTable by reimplementing maybeTip(). The
- constructors differ from the QToolTip constructor in having a
+ constructors differ from the TQToolTip constructor in having a
QHeader and a QTable respectively as the first parameter for
the constructor instead of a TQWidget. This is because
we want to ensure that only headers and tables can be
- passed as arguments. A QToolTipGroup can be provided as the
+ passed as arguments. A TQToolTipGroup can be provided as the
second argument to show tooltips in, for example a statusbar.
\printuntil };
@@ -40,13 +40,13 @@
\printuntil }
The HeaderToolTip constructor propagates the parameters
- to the QToolTip constructor.
+ to the TQToolTip constructor.
\printuntil }
The implementation of maybeTip() uses the QHeader API
to get the section at the requested position and uses
- QToolTip::tip() to display the section's label in a
- tooltip. The second string is used by QToolTipGroup and will
+ TQToolTip::tip() to display the section's label in a
+ tooltip. The second string is used by TQToolTipGroup and will
show up in the statusbar.
\printuntil }
@@ -54,7 +54,7 @@
Since QTable is a QScrollView all user interaction
happens on QTable's viewport() . The TableToolTip
constructor passes the viewport() and the tooltip
- group to the QToolTip constructor, and initializes the table
+ group to the TQToolTip constructor, and initializes the table
member with the QTable pointer itself.
\printto moveTopLeft
@@ -69,8 +69,8 @@
We translate the cell's geometry back to viewport coordinates
so that the tooltip disappears when the mouse cursor leaves
- the cell, and use QToolTip::tip() to display the cell's label
- in a tooltip and to provide text for the QToolTipGroup as before.
+ the cell, and use TQToolTip::tip() to display the cell's label
+ in a tooltip and to provide text for the TQToolTipGroup as before.
\printuntil };
\quotefile helpsystem/whatsthis.cpp
\skipto WhatsThis::WhatsThis
@@ -147,7 +147,7 @@
\skipto class MainWindow
\printuntil };
- A QMainWindow is used to create a user interface that uses the
+ A TQMainWindow is used to create a user interface that uses the
above classes in addition to TQt Assistant to provide context
sensitive help in the application.
@@ -171,19 +171,19 @@
and the toolbar are populated.
\printto // create
- The static function whatsThisButton() creates a QToolButton
+ The static function whatsThisButton() creates a TQToolButton
which will enter "What's this?" mode when clicked.
\printto // set up
- A QToolTipGroup is created and will show and remove tooltips
+ A TQToolTipGroup is created and will show and remove tooltips
in the statusbar as the tooltips are displayed on the widgets.
\printto // set up whats this
The tooltips are set up. The static function add() sets up a
tooltip on the Assistant toolbutton. Tooltip objects are created
- using the QToolTip subclasses, the constructor's first parameter
+ using the TQToolTip subclasses, the constructor's first parameter
specifies the widget we want to add dynamic tooltips for and the
- second argument specifies the QToolTipGroup they should belong
+ second argument specifies the TQToolTipGroup they should belong
to.
\printto // connections
@@ -200,8 +200,8 @@
\printuntil }
The destructor deletes the tooltips. We need to delete the
- tooltips explicitly since QToolTip is, as mentioned above, not
- a subclass of TQObject and the instances of QToolTip not will be
+ tooltips explicitly since TQToolTip is, as mentioned above, not
+ a subclass of TQObject and the instances of TQToolTip not will be
deleted when the widget is deleted.
\printuntil }
diff --git a/examples/helpsystem/mainwindow.cpp b/examples/helpsystem/mainwindow.cpp
index 95b2786f2..d711a1b39 100644
--- a/examples/helpsystem/mainwindow.cpp
+++ b/examples/helpsystem/mainwindow.cpp
@@ -10,13 +10,13 @@
#include <ntqapplication.h>
#include <ntqassistantclient.h>
#include <ntqfiledialog.h>
-#include <ntqmenubar.h>
-#include <ntqpopupmenu.h>
-#include <ntqstatusbar.h>
+#include <tqmenubar.h>
+#include <tqpopupmenu.h>
+#include <tqstatusbar.h>
#include <ntqtable.h>
-#include <ntqtoolbar.h>
-#include <ntqtoolbutton.h>
-#include <ntqtooltip.h>
+#include <tqtoolbar.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
#include "mainwindow.h"
#include "tooltip.h"
diff --git a/examples/helpsystem/mainwindow.h b/examples/helpsystem/mainwindow.h
index 2566bae18..db40a4d66 100644
--- a/examples/helpsystem/mainwindow.h
+++ b/examples/helpsystem/mainwindow.h
@@ -7,7 +7,7 @@
**
*****************************************************************************/
-#include <ntqmainwindow.h>
+#include <tqmainwindow.h>
class HeaderToolTip;
class TableToolTip;
diff --git a/examples/helpsystem/tooltip.cpp b/examples/helpsystem/tooltip.cpp
index eba546159..45ced5661 100644
--- a/examples/helpsystem/tooltip.cpp
+++ b/examples/helpsystem/tooltip.cpp
@@ -7,7 +7,7 @@
**
*****************************************************************************/
-#include <ntqtooltip.h>
+#include <tqtooltip.h>
#include <ntqtable.h>
#include "tooltip.h"
diff --git a/examples/helpsystem/tooltip.h b/examples/helpsystem/tooltip.h
index 336a06fc2..ab53a6f40 100644
--- a/examples/helpsystem/tooltip.h
+++ b/examples/helpsystem/tooltip.h
@@ -10,7 +10,7 @@
#ifndef TOOLTIP_H
#define TOOLTIP_H
-#include <ntqtooltip.h>
+#include <tqtooltip.h>
class TQTable;