class KPopupMenu
|
A menu with title items.
More... |
|
|
Public Methods
- KPopupMenu (QWidget *parent=0, const char *name=0)
- int insertTitle (const QString &text, int id=-1, int index=-1)
- int insertTitle (const QPixmap &icon, const QString &text, int id=-1, int index=-1)
- void changeTitle (int id, const QString &text)
- void changeTitle (int id, const QPixmap &icon, const QString &text)
- QString title (int id=-1)
- QPixmap titlePixmap (int id)
- KPopupMenu (const QString &title, QWidget *parent=0, const char *name=0)
- void setTitle (const QString &title)
Detailed Description
KPopupMenu is a class for menus with standard title items. It acts
identically to QPopupMenu, with the addition of insertTitle() and
changeTitle() methods.
The titles support a text string, an icon, plus user defined gradients,
colors, and background pixmaps.
KPopupMenu (QWidget *parent=0, const char *name=0)
|
Creates a new KPopupMenu.
int insertTitle (const QString &text, int id=-1, int index=-1)
|
Inserts a title item with no icon.
int insertTitle (const QPixmap &icon, const QString &text, int id=-1, int index=-1)
|
Inserts a title item with the given icon and title.
void changeTitle (int id, const QString &text)
|
Changes the title of the item at the specified id. If a icon was
previously set it is cleared.
Changes the title and icon of the title item at the specified id.
Returns the title of the title item at the specified id. The default
id of -1 is for backwards compatibility only, you should always specify
the id.
Returns the icon of the title item at the specified id.
KPopupMenu (const QString &title, QWidget *parent=0, const char *name=0)
|
Obsolete method provided for backwards compatibility only. Use the
normal constructor and insertTitle instead.
void setTitle (const QString &title)
|
Obsolete method provided for backwards compatibility only. Use
insertTitle and changeTitle instead.
- Author: Daniel M. Duley <mosfet@kde.org>
- Generated: dfaure@faure on Sun Mar 26 14:24:24 2000, using kdoc 2.0a35.