summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqcustommenuitem.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqcustommenuitem.3qt')
-rw-r--r--doc/man/man3/tqcustommenuitem.3qt34
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/man/man3/tqcustommenuitem.3qt b/doc/man/man3/tqcustommenuitem.3qt
index 65bc9d6c..0c65e1c8 100644
--- a/doc/man/man3/tqcustommenuitem.3qt
+++ b/doc/man/man3/tqcustommenuitem.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QCustomMenuItem 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQCustomMenuItem 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,7 +7,7 @@
.ad l
.nh
.SH NAME
-QCustomMenuItem \- Abstract base class for custom menu items in popup menus
+TQCustomMenuItem \- Abstract base class for custom menu items in popup menus
.SH SYNOPSIS
\fC#include <tqmenudata.h>\fR
.PP
@@ -16,10 +16,10 @@ Inherits Qt.
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQCustomMenuItem\fR ()"
+.BI "\fBTQCustomMenuItem\fR ()"
.br
.ti -1c
-.BI "virtual \fB~QCustomMenuItem\fR ()"
+.BI "virtual \fB~TQCustomMenuItem\fR ()"
.br
.ti -1c
.BI "virtual bool \fBfullSpan\fR () const"
@@ -38,7 +38,7 @@ Inherits Qt.
.br
.in -1c
.SH DESCRIPTION
-The QCustomMenuItem class is an abstract base class for custom menu items in popup menus.
+The TQCustomMenuItem class is an abstract base class for custom menu items in popup menus.
.PP
A custom menu item is a menu item that is defined by two pure virtual functions, paint() and sizeHint(). The size hint tells the menu how much space it needs to reserve for this item, and paint is called whenever the item needs painting.
.PP
@@ -50,38 +50,38 @@ By default, a custom item can also have an icon and a keyboard accelerator. You
.PP
If you want the custom item to be treated just as a separator, reimplement isSeparator() to return TRUE.
.PP
-Note that you can insert pixmaps or bitmaps as items into a popup menu without needing to create a QCustomMenuItem. However, custom menu items offer more flexibility, and -- especially important with Windows style -- provide the possibility of drawing the item with a different color when it is highlighted.
+Note that you can insert pixmaps or bitmaps as items into a popup menu without needing to create a TQCustomMenuItem. However, custom menu items offer more flexibility, and -- especially important with Windows style -- provide the possibility of drawing the item with a different color when it is highlighted.
.PP
menu/menu.cpp shows a simple example how custom menu items can be used.
.PP
-Note: the current implementation of QCustomMenuItem will not recognize shortcut keys that are from text with ampersands. Normal accelerators work though.
+Note: the current implementation of TQCustomMenuItem will not recognize shortcut keys that are from text with ampersands. Normal accelerators work though.
.PP
.ce 1
.B "[Image Omitted]"
.PP
See also TQMenuData, TQPopupMenu, and Miscellaneous Classes.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QCustomMenuItem::QCustomMenuItem ()"
-Constructs a QCustomMenuItem
-.SH "QCustomMenuItem::~QCustomMenuItem ()\fC [virtual]\fR"
-Destroys a QCustomMenuItem
-.SH "bool QCustomMenuItem::fullSpan () const\fC [virtual]\fR"
+.SH "TQCustomMenuItem::TQCustomMenuItem ()"
+Constructs a TQCustomMenuItem
+.SH "TQCustomMenuItem::~TQCustomMenuItem ()\fC [virtual]\fR"
+Destroys a TQCustomMenuItem
+.SH "bool TQCustomMenuItem::fullSpan () const\fC [virtual]\fR"
Returns TRUE if this item wants to span the entire popup menu width; otherwise returns FALSE. The default is FALSE, meaning that the menu may show an icon and an accelerator key for this item as well.
-.SH "bool QCustomMenuItem::isSeparator () const\fC [virtual]\fR"
+.SH "bool TQCustomMenuItem::isSeparator () const\fC [virtual]\fR"
Returns TRUE if this item is just a separator; otherwise returns FALSE.
-.SH "void QCustomMenuItem::paint ( TQPainter * p, const TQColorGroup & cg, bool act, bool enabled, int x, int y, int w, int h )\fC [pure virtual]\fR"
+.SH "void TQCustomMenuItem::paint ( TQPainter * p, const TQColorGroup & cg, bool act, bool enabled, int x, int y, int w, int h )\fC [pure virtual]\fR"
Paints this item. When this function is invoked, the painter \fIp\fR is set to a font and foreground color suitable for a menu item text using color group \fIcg\fR. The item is active if \fIact\fR is TRUE and enabled if \fIenabled\fR is TRUE. The geometry values \fIx\fR, \fIy\fR, \fIw\fR and \fIh\fR specify where to draw the item.
.PP
Do not draw any background, this has already been done by the popup menu according to the current GUI style.
-.SH "void QCustomMenuItem::setFont ( const TQFont & font )\fC [virtual]\fR"
+.SH "void TQCustomMenuItem::setFont ( const TQFont & font )\fC [virtual]\fR"
Sets the font of the custom menu item to \fIfont\fR.
.PP
This function is called whenever the font in the popup menu changes. For menu items that show their own individual font entry, you want to ignore this.
-.SH "TQSize QCustomMenuItem::sizeHint ()\fC [pure virtual]\fR"
+.SH "TQSize TQCustomMenuItem::sizeHint ()\fC [pure virtual]\fR"
Returns the item's size hint.
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/qcustommenuitem.html
+.BR http://doc.trolltech.com/tqcustommenuitem.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the