Eneboo - Documentación para desarrolladores
|
#include <actiondnd.h>
Métodos públicos | |
QDesignerAction (QObject *parent) | |
QDesignerAction (QWidget *w, QObject *parent) | |
void | init () |
QWidget * | widget () const |
int | index () const |
bool | addTo (QWidget *w) |
bool | removeFrom (QWidget *w) |
void | remove () |
bool | supportsMenu () const |
Métodos protegidos | |
void | addedTo (QWidget *w, QWidget *) |
void | addedTo (int index, QPopupMenu *) |
QDesignerAction::QDesignerAction | ( | QObject * | parent | ) | [inline] |
void QDesignerAction::addedTo | ( | int | index, |
QPopupMenu * | menu | ||
) | [inline, protected, virtual] |
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. This function is called from the addTo() function when it has created a menu item at the index position index in the popup menu menu.
Reimplementado de QAction.
Adds this action to widget w.
Currently actions may be added to QToolBar and QPopupMenu widgets.
An action added to a tool bar is automatically displayed as a tool button; an action added to a pop up menu appears as a menu option.
addTo() returns TRUE if the action was added successfully and FALSE otherwise. (If w is not a QToolBar or QPopupMenu the action will not be added and FALSE will be returned.)
Reimplementado de QAction.
int QDesignerAction::index | ( | ) | const [inline] |
void QDesignerAction::init | ( | ) |
Reimplementado de QAction.
void QDesignerAction::remove | ( | void | ) |
bool QDesignerAction::supportsMenu | ( | ) | const [inline] |
QWidget* QDesignerAction::widget | ( | ) | const [inline] |