diff options
Diffstat (limited to 'examples/helpsystem/helpsystem.doc')
-rw-r--r-- | examples/helpsystem/helpsystem.doc | 40 |
1 files changed, 20 insertions, 20 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 } |