summaryrefslogtreecommitdiffstats
path: root/examples/helpsystem
diff options
context:
space:
mode:
Diffstat (limited to 'examples/helpsystem')
-rw-r--r--examples/helpsystem/helpsystem.doc36
-rw-r--r--examples/helpsystem/mainwindow.cpp2
-rw-r--r--examples/helpsystem/tooltip.cpp2
-rw-r--r--examples/helpsystem/whatsthis.cpp8
4 files changed, 24 insertions, 24 deletions
diff --git a/examples/helpsystem/helpsystem.doc b/examples/helpsystem/helpsystem.doc
index 97221322e..b368f0a11 100644
--- a/examples/helpsystem/helpsystem.doc
+++ b/examples/helpsystem/helpsystem.doc
@@ -16,15 +16,15 @@
The application has a user interface based on a
TQMainWindow with a menubar, statusbar and a toolbar, and uses
- a QTable as the central widget.
+ a TQTable as the central widget.
\quotefile helpsystem/tooltip.h
\skipto : public TQToolTip
\printuntil };
Two TQToolTip subclasses implement dynamic tooltips for
- QHeader and QTable by reimplementing maybeTip(). The
+ TQHeader and TQTable by reimplementing maybeTip(). The
constructors differ from the TQToolTip constructor in having a
- QHeader and a QTable respectively as the first parameter for
+ TQHeader and a TQTable 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 TQToolTipGroup can be provided as the
@@ -32,8 +32,8 @@
\printuntil };
- The TableToolTip class keeps a reference to the QTable
- as a member for easier access of the QTable object later on.
+ The TableToolTip class keeps a reference to the TQTable
+ as a member for easier access of the TQTable object later on.
\quotefile helpsystem/tooltip.cpp
\skipto HeaderToolTip::HeaderToolTip
@@ -43,7 +43,7 @@
to the TQToolTip constructor.
\printuntil }
- The implementation of maybeTip() uses the QHeader API
+ The implementation of maybeTip() uses the TQHeader API
to get the section at the requested position and uses
TQToolTip::tip() to display the section's label in a
tooltip. The second string is used by TQToolTipGroup and will
@@ -51,18 +51,18 @@
\printuntil }
- Since QTable is a TQScrollView all user interaction
- happens on QTable's viewport() . The TableToolTip
+ Since TQTable is a TQScrollView all user interaction
+ happens on TQTable's viewport() . The TableToolTip
constructor passes the viewport() and the tooltip
group to the TQToolTip constructor, and initializes the table
- member with the QTable pointer itself.
+ member with the TQTable pointer itself.
\printto moveTopLeft
- The implementation of maybeTip() uses the QTable API
+ The implementation of maybeTip() uses the TQTable API
to get information about the cell at the requested position.
- The QTable API expects contents coordinates, and since the
+ The TQTable API expects contents coordinates, and since the
requested point is relative to the viewport we need to translate
- the coordinates before we can use QTable's functions.
+ the coordinates before we can use TQTable's functions.
\printuntil }
\quotefile helpsystem/whatsthis.h
\skipto class WhatsThis
@@ -88,7 +88,7 @@
The WhatsThis constructor takes two parameters, the first is the
widget we want to provide WhatsThis for, and the second is the
one which receives the events. Normally this is the same widget,
- but some widgets, like QTable, are more complex and have a
+ but some widgets, like TQTable, are more complex and have a
viewport() widget which receives the events. If such a widget
is passed to the constructor it will propagate the parameter to
the TQWhatsThis constructor and store the TQWidget pointer itself
@@ -119,7 +119,7 @@
WhatsThis constructor.
\printto TableWhatsThis::TableWhatsThis
- The implementation of text() uses the QHeader API to determine
+ The implementation of text() uses the TQHeader API to determine
whether we have a horizontal or a vertical header and returns
a string which states the header's orientation and section.
\footnote
@@ -128,7 +128,7 @@
inheritance. \endfootnote
\printuntil }
- Since QTable is a scrollview and has a viewport() which receives
+ Since TQTable is a scrollview and has a viewport() which receives
the events, we propagate the table itself and the table's
viewport() to the WhatsThis constructor.
\printuntil }
@@ -136,9 +136,9 @@
\printuntil }
\printuntil }
- The implementation of text() uses the QTable API to get
+ The implementation of text() uses the TQTable API to get
information about the cell at the requested position.
- The QTable API expects contents coordinates, so we need to
+ The TQTable API expects contents coordinates, so we need to
translate the point as shown earlier for the tooltip classes.
We use the rtti() function to figure out the item's type
and return a string accordingly.
@@ -167,7 +167,7 @@
so that the system path is used.
\printto TQWhatsThis::whatsThisButton
- A QTable is used as the central widget and the table, the menus
+ A TQTable is used as the central widget and the table, the menus
and the toolbar are populated.
\printto // create
diff --git a/examples/helpsystem/mainwindow.cpp b/examples/helpsystem/mainwindow.cpp
index ad489eb96..8cd3c31bf 100644
--- a/examples/helpsystem/mainwindow.cpp
+++ b/examples/helpsystem/mainwindow.cpp
@@ -13,7 +13,7 @@
#include <tqmenubar.h>
#include <tqpopupmenu.h>
#include <tqstatusbar.h>
-#include <ntqtable.h>
+#include <tqtable.h>
#include <tqtoolbar.h>
#include <tqtoolbutton.h>
#include <tqtooltip.h>
diff --git a/examples/helpsystem/tooltip.cpp b/examples/helpsystem/tooltip.cpp
index 45ced5661..ab5e5d551 100644
--- a/examples/helpsystem/tooltip.cpp
+++ b/examples/helpsystem/tooltip.cpp
@@ -8,7 +8,7 @@
*****************************************************************************/
#include <tqtooltip.h>
-#include <ntqtable.h>
+#include <tqtable.h>
#include "tooltip.h"
diff --git a/examples/helpsystem/whatsthis.cpp b/examples/helpsystem/whatsthis.cpp
index 418e3a4db..113dbc10c 100644
--- a/examples/helpsystem/whatsthis.cpp
+++ b/examples/helpsystem/whatsthis.cpp
@@ -9,8 +9,8 @@
#include <ntqapplication.h>
#include <tqdir.h>
-#include <ntqheader.h>
-#include <ntqtable.h>
+#include <tqheader.h>
+#include <tqtable.h>
#include "whatsthis.h"
@@ -53,7 +53,7 @@ TQString HeaderWhatsThis::text( const TQPoint &p )
if( section == -1 )
return "This is empty space.";
TQString docsPath = TQDir("../../doc").absPath();
- return TQString("This is section number %1 in the %2 <a href=%2/html/ntqheader.html>header</a>.").
+ return TQString("This is section number %1 in the %2 <a href=%2/html/tqheader.html>header</a>.").
arg(section + 1).
arg(orient).
arg(docsPath);
@@ -83,7 +83,7 @@ TQString TableWhatsThis::text( const TQPoint &p )
TQString docsPath = TQDir("../../doc").absPath();
if ( TQTableItem::RTTI == i->rtti() ) {
- return TQString("This is a <a href=%1/html/qtableitem.html>TQTableItem</a>.").
+ return TQString("This is a <a href=%1/html/tqtableitem.html>TQTableItem</a>.").
arg(docsPath);
} else if ( TQComboTableItem::RTTI == i->rtti() ) {
return TQString("This is a <a href=%1/html/tqcombotableitem.html>TQComboTableItem</a>."