diff options
Diffstat (limited to 'doc/man/man3/tqpopupmenu.3qt')
-rw-r--r-- | doc/man/man3/tqpopupmenu.3qt | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/doc/man/man3/tqpopupmenu.3qt b/doc/man/man3/tqpopupmenu.3qt index 48e603fd3..ef8b119ff 100644 --- a/doc/man/man3/tqpopupmenu.3qt +++ b/doc/man/man3/tqpopupmenu.3qt @@ -22,7 +22,7 @@ Inherits QFrame and TQMenuData. .BI "\fB~TQPopupMenu\fR ()" .br .ti -1c -.BI "void \fBpopup\fR ( const QPoint & pos, int indexAtPoint = -1 )" +.BI "void \fBpopup\fR ( const TQPoint & pos, int indexAtPoint = -1 )" .br .ti -1c .BI "virtual void \fBupdateItem\fR ( int id )" @@ -37,7 +37,7 @@ Inherits QFrame and TQMenuData. .BI "int \fBexec\fR ()" .br .ti -1c -.BI "int \fBexec\fR ( const QPoint & pos, int indexAtPoint = 0 )" +.BI "int \fBexec\fR ( const TQPoint & pos, int indexAtPoint = 0 )" .br .ti -1c .BI "virtual void \fBsetActiveItem\fR ( int i )" @@ -46,7 +46,7 @@ Inherits QFrame and TQMenuData. .BI "int \fBidAt\fR ( int index ) const" .br .ti -1c -.BI "int \fBidAt\fR ( const QPoint & pos ) const" +.BI "int \fBidAt\fR ( const TQPoint & pos ) const" .br .ti -1c .BI "int \fBinsertTearOffHandle\fR ( int id = -1, int index = -1 )" @@ -76,10 +76,10 @@ Inherits QFrame and TQMenuData. .BI "int \fBinsertItem\fR ( const TQIconSet & icon, const TQString & text, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" .br .ti -1c -.BI "int \fBinsertItem\fR ( const QPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" +.BI "int \fBinsertItem\fR ( const TQPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" .br .ti -1c -.BI "int \fBinsertItem\fR ( const TQIconSet & icon, const QPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" +.BI "int \fBinsertItem\fR ( const TQIconSet & icon, const TQPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" .br .ti -1c .BI "int \fBinsertItem\fR ( const TQString & text, int id = -1, int index = -1 )" @@ -94,16 +94,16 @@ Inherits QFrame and TQMenuData. .BI "int \fBinsertItem\fR ( const TQIconSet & icon, const TQString & text, TQPopupMenu * popup, int id = -1, int index = -1 )" .br .ti -1c -.BI "int \fBinsertItem\fR ( const QPixmap & pixmap, int id = -1, int index = -1 )" +.BI "int \fBinsertItem\fR ( const TQPixmap & pixmap, int id = -1, int index = -1 )" .br .ti -1c -.BI "int \fBinsertItem\fR ( const TQIconSet & icon, const QPixmap & pixmap, int id = -1, int index = -1 )" +.BI "int \fBinsertItem\fR ( const TQIconSet & icon, const TQPixmap & pixmap, int id = -1, int index = -1 )" .br .ti -1c -.BI "int \fBinsertItem\fR ( const QPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" +.BI "int \fBinsertItem\fR ( const TQPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" .br .ti -1c -.BI "int \fBinsertItem\fR ( const TQIconSet & icon, const QPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" +.BI "int \fBinsertItem\fR ( const TQIconSet & icon, const TQPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" .br .ti -1c .BI "int \fBinsertItem\fR ( TQWidget * widget, int id = -1, int index = -1 )" @@ -139,7 +139,7 @@ Inherits QFrame and TQMenuData. .BI "TQString \fBtext\fR ( int id ) const" .br .ti -1c -.BI "QPixmap * \fBpixmap\fR ( int id ) const" +.BI "TQPixmap * \fBpixmap\fR ( int id ) const" .br .ti -1c .BI "void \fBsetWhatsThis\fR ( int id, const TQString & text )" @@ -151,13 +151,13 @@ Inherits QFrame and TQMenuData. .BI "void \fBchangeItem\fR ( int id, const TQString & text )" .br .ti -1c -.BI "void \fBchangeItem\fR ( int id, const QPixmap & pixmap )" +.BI "void \fBchangeItem\fR ( int id, const TQPixmap & pixmap )" .br .ti -1c .BI "void \fBchangeItem\fR ( int id, const TQIconSet & icon, const TQString & text )" .br .ti -1c -.BI "void \fBchangeItem\fR ( int id, const TQIconSet & icon, const QPixmap & pixmap )" +.BI "void \fBchangeItem\fR ( int id, const TQIconSet & icon, const TQPixmap & pixmap )" .br .ti -1c .BI "bool \fBisItemEnabled\fR ( int id ) const" @@ -283,7 +283,7 @@ Examples: Changes the text of the menu item \fIid\fR to \fItext\fR. If the item has an icon, the icon remains unchanged. .PP See also text(). -.SH "void TQMenuData::changeItem ( int id, const QPixmap & pixmap )" +.SH "void TQMenuData::changeItem ( int id, const TQPixmap & pixmap )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Changes the pixmap of the menu item \fIid\fR to the pixmap \fIpixmap\fR. If the item has an icon, the icon is unchanged. @@ -295,7 +295,7 @@ This is an overloaded member function, provided for convenience. It behaves esse Changes the iconset and text of the menu item \fIid\fR to the \fIicon\fR and \fItext\fR respectively. .PP See also pixmap(). -.SH "void TQMenuData::changeItem ( int id, const TQIconSet & icon, const QPixmap & pixmap )" +.SH "void TQMenuData::changeItem ( int id, const TQIconSet & icon, const TQPixmap & pixmap )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Changes the iconset and pixmap of the menu item \fIid\fR to \fIicon\fR and \fIpixmap\fR respectively. @@ -339,7 +339,7 @@ See also TQStyle::drawControl(). .SH "int TQPopupMenu::exec ()" Executes this popup synchronously. .PP -This is equivalent to \fCexec(mapToGlobal(QPoint(0,0)))\fR. In most situations you'll want to specify the position yourself, for example at the current mouse position: +This is equivalent to \fCexec(mapToGlobal(TQPoint(0,0)))\fR. In most situations you'll want to specify the position yourself, for example at the current mouse position: .PP .nf .br @@ -350,13 +350,13 @@ or aligned to a widget: .PP .nf .br - exec(somewidget.mapToGlobal(QPoint(0,0))); + exec(somewidget.mapToGlobal(TQPoint(0,0))); .br .fi .PP Examples: .)l fileiconview/tqfileiconview.cpp, menu/menu.cpp, and scribble/scribble.cpp. -.SH "int TQPopupMenu::exec ( const QPoint & pos, int indexAtPoint = 0 )" +.SH "int TQPopupMenu::exec ( const TQPoint & pos, int indexAtPoint = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Executes this popup synchronously. @@ -378,7 +378,7 @@ or aligned to a widget: .PP .nf .br - exec( somewidget.mapToGlobal(QPoint(0, 0)) ); + exec( somewidget.mapToGlobal(TQPoint(0, 0)) ); .br .fi .PP @@ -399,7 +399,7 @@ Returns the identifier of the menu item at position \fIindex\fR in the internal See also TQMenuData::setId() and TQMenuData::indexOf(). .PP Example: scrollview/scrollview.cpp. -.SH "int TQPopupMenu::idAt ( const QPoint & pos ) const" +.SH "int TQPopupMenu::idAt ( const TQPoint & pos ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the id of the item at \fIpos\fR, or -1 if there is no item there or if it is a separator. @@ -444,7 +444,7 @@ If you need to translate accelerators, use tr() with the text and accelerator. ( .PP In the example above, pressing Ctrl+O or selecting "Open" from the menu activates the myView->open() function. .PP -Some insert functions take a TQIconSet parameter to specify the little menu item icon. Note that you can always pass a QPixmap object instead. +Some insert functions take a TQIconSet parameter to specify the little menu item icon. Note that you can always pass a TQPixmap object instead. .PP The \fIid\fR specifies the identification number associated with the menu item. Note that only positive values are valid, as a negative value will make TQt select a unique id for the item. .PP @@ -470,22 +470,22 @@ Inserts a menu item with icon \fIicon\fR, text \fItext\fR, accelerator \fIaccel\ Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), connectItem(), QAccel, and ntqnamespace.h. -.SH "int TQMenuData::insertItem ( const QPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with pixmap \fIpixmap\fR, accelerator \fIaccel\fR, optional id \fIid\fR, and optional \fIindex\fR position. The menu item is connected it to the \fIreceiver\fR's \fImember\fR slot. The icon will be displayed to the left of the text in the item. .PP -To look best when being highlighted as a menu item, the pixmap should provide a mask (see QPixmap::mask()). +To look best when being highlighted as a menu item, the pixmap should provide a mask (see TQPixmap::mask()). .PP Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const QPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const TQPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with icon \fIicon\fR, pixmap \fIpixmap\fR, accelerator \fIaccel\fR, optional id \fIid\fR, and optional \fIindex\fR position. The icon will be displayed to the left of the pixmap in the item. The item is connected to the \fImember\fR slot in the \fIreceiver\fR object. .PP -To look best when being highlighted as a menu item, the pixmap should provide a mask (see QPixmap::mask()). +To look best when being highlighted as a menu item, the pixmap should provide a mask (see TQPixmap::mask()). .PP Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP @@ -526,17 +526,17 @@ The \fIpopup\fR must be deleted by the programmer or by its parent widget. It is Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int TQMenuData::insertItem ( const QPixmap & pixmap, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQPixmap & pixmap, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with pixmap \fIpixmap\fR, optional id \fIid\fR, and optional \fIindex\fR position. .PP -To look best when being highlighted as a menu item, the pixmap should provide a mask (see QPixmap::mask()). +To look best when being highlighted as a menu item, the pixmap should provide a mask (see TQPixmap::mask()). .PP Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const QPixmap & pixmap, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const TQPixmap & pixmap, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with icon \fIicon\fR, pixmap \fIpixmap\fR, optional id \fIid\fR, and optional \fIindex\fR position. The icon will be displayed to the left of the pixmap in the item. @@ -544,7 +544,7 @@ Inserts a menu item with icon \fIicon\fR, pixmap \fIpixmap\fR, optional id \fIid Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int TQMenuData::insertItem ( const QPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with pixmap \fIpixmap\fR, submenu \fIpopup\fR, optional id \fIid\fR, and optional \fIindex\fR position. @@ -554,7 +554,7 @@ The \fIpopup\fR must be deleted by the programmer or by its parent widget. It is Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const QPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const TQPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with icon \fIicon\fR, pixmap \fIpixmap\fR submenu \fIpopup\fR, optional id \fIid\fR, and optional \fIindex\fR position. The icon will be displayed to the left of the pixmap in the item. @@ -660,11 +660,11 @@ Returns the parameter of the activation signal of item \fIid\fR. If no parameter has been specified for this item with setItemParameter(), the value defaults to \fIid\fR. .PP See also connectItem(), disconnectItem(), and setItemParameter(). -.SH "QPixmap * TQMenuData::pixmap ( int id ) const" +.SH "TQPixmap * TQMenuData::pixmap ( int id ) const" Returns the pixmap that has been set for menu item \fIid\fR, or 0 if no pixmap has been set. .PP See also changeItem(), text(), and iconSet(). -.SH "void TQPopupMenu::popup ( const QPoint & pos, int indexAtPoint = -1 )" +.SH "void TQPopupMenu::popup ( const TQPoint & pos, int indexAtPoint = -1 )" Displays the popup menu so that the item number \fIindexAtPoint\fR will be at the specified \fIglobal\fR position \fIpos\fR. To translate a widget's local coordinates into global coordinates, use TQWidget::mapToGlobal(). .PP When positioning a popup with exec() or popup(), bear in mind that you cannot rely on the popup menu's current size(). For performance reasons, the popup adapts its size only when necessary, so in many cases, the size before and after the show is different. Instead, use sizeHint(). It calculates the proper size depending on the menu's current contents. |