A convenience subclass of QAction for simplifying the association of menu items with icons, toolbar buttons, and hotkeys. More...
#include <guiclient.h>
Properties | |
autoRepeat | |
checkable | |
checked | |
enabled | |
font | |
icon | |
iconText | |
iconVisibleInMenu | |
menuRole | |
objectName | |
priority | |
shortcut | |
shortcutContext | |
statusTip | |
text | |
toolTip | |
visible | |
whatsThis | |
Public Member Functions | |
Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, bool) | |
Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, bool, const QPixmap *, QWidget *) | |
Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, bool, const QPixmap *, QWidget *, const QString &) | |
Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, const QString &) | |
Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, const QString &, const QPixmap *, QWidget *) | |
Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, const QString &, const QPixmap *, QWidget *, const QString &) | |
QActionGroup * | actionGroup () const |
void | activate (ActionEvent event) |
QList< QGraphicsWidget * > | associatedGraphicsWidgets () const |
QList< QWidget * > | associatedWidgets () const |
bool | autoRepeat () const |
bool | blockSignals (bool block) |
void | changed () |
const QObjectList & | children () const |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
QVariant | data () const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const |
bool | disconnect (const QObject *receiver, const char *method) const |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name, Qt::FindChildOptions options) const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const |
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const |
QFont | font () const |
void | hover () |
void | hovered () |
QIcon | icon () const |
QString | iconText () const |
bool | inherits (const char *className) const |
void | installEventFilter (QObject *filterObj) |
bool | isCheckable () const |
bool | isChecked () const |
bool | isEnabled () const |
bool | isIconVisibleInMenu () const |
bool | isSeparator () const |
bool | isVisible () const |
bool | isWidgetType () const |
bool | isWindowType () const |
void | killTimer (int id) |
QMenu * | menu () const |
MenuRole | menuRole () const |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const |
QWidget * | parentWidget () const |
Priority | priority () const |
QVariant | property (const char *name) const |
void | removeEventFilter (QObject *obj) |
void | setActionGroup (QActionGroup *group) |
void | setAutoRepeat (bool) |
void | setCheckable (bool) |
void | setChecked (bool) |
void | setData (const QVariant &userData) |
void | setDisabled (bool b) |
void | setEnabled (bool) |
void | setFont (const QFont &font) |
void | setIcon (const QIcon &icon) |
void | setIconText (const QString &text) |
void | setIconVisibleInMenu (bool visible) |
void | setMenu (QMenu *menu) |
void | setMenuRole (MenuRole menuRole) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
void | setPriority (Priority priority) |
bool | setProperty (const char *name, const QVariant &value) |
void | setSeparator (bool b) |
void | setShortcut (const QKeySequence &shortcut) |
void | setShortcutContext (Qt::ShortcutContext context) |
void | setShortcuts (const QList< QKeySequence > &shortcuts) |
void | setShortcuts (QKeySequence::StandardKey key) |
void | setStatusTip (const QString &statusTip) |
void | setText (const QString &text) |
void | setToolTip (const QString &tip) |
void | setVisible (bool) |
void | setWhatsThis (const QString &what) |
QKeySequence | shortcut () const |
Qt::ShortcutContext | shortcutContext () const |
QList< QKeySequence > | shortcuts () const |
bool | showStatusText (QWidget *widget) |
bool | signalsBlocked () const |
int | startTimer (int interval, Qt::TimerType timerType) |
QString | statusTip () const |
QString | text () const |
QThread * | thread () const |
void | toggle () |
void | toggled (bool checked) |
QString | toolTip () const |
void | trigger () |
void | triggered (bool checked) |
QString | whatsThis () const |
Static Public Member Functions | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
virtual bool | event (QEvent *e) |
bool | isSignalConnected (const QMetaMethod &signal) const |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
A convenience subclass of QAction for simplifying the association of menu items with icons, toolbar buttons, and hotkeys.
Core application menu items are built using the Action class. The Action constructors - actually Action::init - attach QString values describing the user's permissions as QAction::data. These strings are interpreted in the following fashion:
true
- the user can use this QAction false
- the user can not use this QAction Priv
- the user must have SimplePriv
#superuser
- the user must be a DBA PrivA
PrivB
- the user can have either PrivA
or PrivB
PrivA+PrivB
- the user must have both PrivA
and PrivB
@name:mode
- call name::userHasPriv(mode)
Action::Action | ( | QWidget * | pParent, |
const char * | pName, | ||
const QString & | pDisplayName, | ||
QObject * | pTarget, | ||
const char * | pActivateSlot, | ||
QWidget * | pAddTo, | ||
bool | pEnabled | ||
) |
Action::Action | ( | QWidget * | , |
const char * | , | ||
const QString & | , | ||
QObject * | , | ||
const char * | , | ||
QWidget * | , | ||
bool | , | ||
const QPixmap * | , | ||
QWidget * | |||
) |
Action::Action | ( | QWidget * | , |
const char * | , | ||
const QString & | , | ||
QObject * | , | ||
const char * | , | ||
QWidget * | , | ||
bool | , | ||
const QPixmap * | , | ||
QWidget * | , | ||
const QString & | |||
) |
Action::Action | ( | QWidget * | pParent, |
const char * | pName, | ||
const QString & | pDisplayName, | ||
QObject * | pTarget, | ||
const char * | pActivateSlot, | ||
QWidget * | pAddTo, | ||
const QString & | pEnabled | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Action::Action | ( | QWidget * | pParent, |
const char * | pName, | ||
const QString & | pDisplayName, | ||
QObject * | pTarget, | ||
const char * | pActivateSlot, | ||
QWidget * | pAddTo, | ||
const QString & | pEnabled, | ||
const QPixmap * | pIcon, | ||
QWidget * | pToolBar | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Action::Action | ( | QWidget * | pParent, |
const char * | pName, | ||
const QString & | pDisplayName, | ||
QObject * | pTarget, | ||
const char * | pActivateSlot, | ||
QWidget * | pAddTo, | ||
const QString & | pEnabled, | ||
const QPixmap * | pIcon, | ||
QWidget * | pToolBar, | ||
const QString & | pToolTip | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Generated on Fri Aug 11 2017 | xTuple ERP Programmer Reference, Version 4.11.0 |
![]() |