Eneboo - Documentación para desarrolladores
|
Métodos públicos | |
QTearOffMenuItem () | |
~QTearOffMenuItem () | |
void | paint (QPainter *p, const QColorGroup &cg, bool, bool, int x, int y, int w, int h) |
bool | fullSpan () const |
QSize | sizeHint () |
QTearOffMenuItem::QTearOffMenuItem | ( | ) | [inline] |
QTearOffMenuItem::~QTearOffMenuItem | ( | ) | [inline] |
bool QTearOffMenuItem::fullSpan | ( | ) | const [inline, virtual] |
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.
Reimplementado de QCustomMenuItem.
void QTearOffMenuItem::paint | ( | QPainter * | p, |
const QColorGroup & | cg, | ||
bool | act, | ||
bool | enabled, | ||
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) | [inline, virtual] |
Paints this item. When this function is invoked, the painter p is set to a font and foreground color suitable for a menu item text using color group cg. The item is active if act is TRUE and enabled if enabled is TRUE. The geometry values x, y, w and h specify where to draw the item.
Do not draw any background, this has already been done by the popup menu according to the current GUI style.
Implementa QCustomMenuItem.
QSize QTearOffMenuItem::sizeHint | ( | ) | [inline, virtual] |
Returns the item's size hint.
Implementa QCustomMenuItem.