|
| Action (QWidget *pParent, const char *pName, const QString &pDisplayName, QObject *pTarget, const char *pActivateSlot, QWidget *pAddTo, bool pEnabled) |
|
| Action (QWidget *pParent, const char *pName, const QString &pDisplayName, QObject *pTarget, const char *pActivateSlot, QWidget *pAddTo, const QString &pEnabled) |
|
| Action (QWidget *pParent, const char *pName, const QString &pDisplayName, QObject *pTarget, const char *pActivateSlot, QWidget *pAddTo, const QString &pEnabled, const QPixmap &pIcon, QWidget *pToolBar) |
|
| 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) |
|
QKeySequence | accel () const |
|
QActionGroup * | actionGroup () const |
|
void | activate (ActionEvent event) |
|
void | activated (int i) |
|
bool | addTo (QWidget *w) |
|
QList< QGraphicsWidget * > | associatedGraphicsWidgets () const |
|
QList< QWidget * > | associatedWidgets () const |
|
bool | autoRepeat () const |
|
bool | blockSignals (bool block) |
|
void | changed () |
|
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
|
const QObjectList & | children () const |
|
const char * | className () const |
|
bool | 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) |
|
bool | disconnect (const QObject *receiver, const char *method) |
|
void | dumpObjectInfo () |
|
void | dumpObjectTree () |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
T | findChild (const QString &name) const |
|
QList< T > | findChildren (const QString &name) const |
|
QList< T > | findChildren (const QRegExp ®Exp) const |
|
QFont | font () const |
|
void | hover () |
|
void | hovered () |
|
QIcon | icon () const |
|
QIcon | iconSet () const |
|
QString | iconText () const |
|
bool | inherits (const char *className) const |
|
void | insertChild (QObject *object) |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isA (const char *className) const |
|
bool | isCheckable () const |
|
bool | isChecked () const |
|
bool | isEnabled () const |
|
bool | isOn () const |
|
bool | isSeparator () const |
|
bool | isToggleAction () const |
|
bool | isVisible () const |
|
bool | isWidgetType () const |
|
void | killTimer (int id) |
|
virtual const QMetaObject * | metaObject () const |
|
void | moveToThread (QThread *targetThread) |
|
const char * | name () const |
|
const char * | name (const char *defaultName) const |
|
QString | objectName () const |
|
QObject * | parent () const |
|
QWidget * | parentWidget () const |
|
Priority | priority () const |
|
QVariant | property (const char *name) const |
|
void | removeChild (QObject *object) |
|
void | removeEventFilter (QObject *obj) |
|
bool | removeFrom (QWidget *w) |
|
void | setAccel (const QKeySequence &shortcut) |
|
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 | setIconSet (const QIcon &i) |
|
void | setIconText (const QString &text) |
|
void | setName (const char *name) |
|
void | setObjectName (const QString &name) |
|
void | setOn (bool b) |
|
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 (QKeySequence::StandardKey key) |
|
void | setShortcuts (const QList< QKeySequence > &shortcuts) |
|
void | setSoftKeyRole (SoftKeyRole softKeyRole) |
|
void | setStatusTip (const QString &statusTip) |
|
void | setText (const QString &text) |
|
void | setToggleAction (bool b) |
|
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 |
|
SoftKeyRole | softKeyRole () const |
|
int | startTimer (int interval) |
|
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 |
|
|
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *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) |
|
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
- See also
- Privileges::isDba()
- Todo:
- Add support for
@name:mode
- call name::userHasPriv(mode)