List of all members | Public Member Functions
QMenuProto Class Reference

#include <qmenuproto.h>

Inheritance diagram for QMenuProto:
QObject QScriptable

Public Member Functions

 QMenuProto (QObject *parent)
 
Q_INVOKABLE QActionactionAt (const QPoint &pt) const
 
Q_INVOKABLE QRect actionGeometry (QAction *act) const
 
Q_INVOKABLE QList< QAction * > actions () const
 
Q_INVOKABLE QActionactiveAction () const
 
Q_INVOKABLE QActionaddAction (const QIcon &icon, const QString &text)
 
Q_INVOKABLE QActionaddAction (const QIcon &icon, const QString &text, const QObject *receiver, const char *member, const QKeySequence &shortcut=0)
 
Q_INVOKABLE QActionaddAction (const QString &text)
 
Q_INVOKABLE QActionaddAction (const QString &text, const QObject *receiver, const char *member, const QKeySequence &shortcut=0)
 
Q_INVOKABLE QMenu * addMenu (const QIcon &icon, const QString &title)
 
Q_INVOKABLE QMenu * addMenu (const QString &title)
 
Q_INVOKABLE QActionaddMenu (QMenu *menu)
 
Q_INVOKABLE QActionaddSeparator ()
 
Q_INVOKABLE void appendAction (QAction *action)
 
Q_INVOKABLE void clear ()
 
Q_INVOKABLE QActiondefaultAction () const
 
Q_INVOKABLE QActionexec ()
 
Q_INVOKABLE QActionexec (const QPoint &p, QAction *action=0)
 
Q_INVOKABLE void hideTearOffMenu ()
 
Q_INVOKABLE QIcon icon () const
 
Q_INVOKABLE void insertAction (QAction *before, QAction *action)
 
Q_INVOKABLE void insertActions (QAction *before, QList< QAction * >actions)
 
Q_INVOKABLE QActioninsertMenu (QAction *before, QMenu *menu)
 
Q_INVOKABLE QActioninsertSeparator (QAction *before)
 
Q_INVOKABLE bool isEmpty () const
 
Q_INVOKABLE bool isTearOffEnabled () const
 
Q_INVOKABLE bool isTearOffMenuVisible () const
 
Q_INVOKABLE QActionmenuAction () const
 
Q_INVOKABLE void popup (const QPoint &p, QAction *atAction=0)
 
Q_INVOKABLE void removeAction (QAction *action)
 
Q_INVOKABLE bool separatorsCollapsible () const
 
Q_INVOKABLE void setActiveAction (QAction *act)
 
Q_INVOKABLE void setDefaultAction (QAction *act)
 
Q_INVOKABLE void setIcon (const QIcon &icon)
 
Q_INVOKABLE void setSeparatorsCollapsible (bool collapse)
 
Q_INVOKABLE void setTearOffEnabled (bool)
 
Q_INVOKABLE void setTitle (const QString &title)
 
Q_INVOKABLE QString title () const
 
Q_INVOKABLE QString toString () const
 

Constructor & Destructor Documentation

◆ QMenuProto()

QMenuProto::QMenuProto ( QObject parent)

Member Function Documentation

◆ actionAt()

QAction * QMenuProto::actionAt ( const QPoint &  pt) const

◆ actionGeometry()

QRect QMenuProto::actionGeometry ( QAction act) const

◆ actions()

QList< QAction * > QMenuProto::actions ( ) const

◆ activeAction()

QAction * QMenuProto::activeAction ( ) const

◆ addAction() [1/4]

QAction * QMenuProto::addAction ( const QIcon &  icon,
const QString &  text 
)

◆ addAction() [2/4]

QAction * QMenuProto::addAction ( const QIcon &  icon,
const QString &  text,
const QObject receiver,
const char *  member,
const QKeySequence &  shortcut = 0 
)

◆ addAction() [3/4]

QAction * QMenuProto::addAction ( const QString &  text)

◆ addAction() [4/4]

QAction * QMenuProto::addAction ( const QString &  text,
const QObject receiver,
const char *  member,
const QKeySequence &  shortcut = 0 
)

◆ addMenu() [1/3]

QMenu * QMenuProto::addMenu ( const QIcon &  icon,
const QString &  title 
)

◆ addMenu() [2/3]

QMenu * QMenuProto::addMenu ( const QString &  title)

◆ addMenu() [3/3]

QAction * QMenuProto::addMenu ( QMenu *  menu)

◆ addSeparator()

QAction * QMenuProto::addSeparator ( )

◆ appendAction()

void QMenuProto::appendAction ( QAction action)

◆ clear()

void QMenuProto::clear ( )

◆ defaultAction()

QAction * QMenuProto::defaultAction ( ) const

◆ exec() [1/2]

QAction * QMenuProto::exec ( )

◆ exec() [2/2]

QAction * QMenuProto::exec ( const QPoint &  p,
QAction action = 0 
)

◆ hideTearOffMenu()

void QMenuProto::hideTearOffMenu ( )

◆ icon()

QIcon QMenuProto::icon ( ) const

◆ insertAction()

void QMenuProto::insertAction ( QAction before,
QAction action 
)

◆ insertActions()

void QMenuProto::insertActions ( QAction before,
QList< QAction * >  actions 
)

◆ insertMenu()

QAction * QMenuProto::insertMenu ( QAction before,
QMenu *  menu 
)

◆ insertSeparator()

QAction * QMenuProto::insertSeparator ( QAction before)

◆ isEmpty()

bool QMenuProto::isEmpty ( ) const

◆ isTearOffEnabled()

bool QMenuProto::isTearOffEnabled ( ) const

◆ isTearOffMenuVisible()

bool QMenuProto::isTearOffMenuVisible ( ) const

◆ menuAction()

QAction * QMenuProto::menuAction ( ) const

◆ popup()

void QMenuProto::popup ( const QPoint &  p,
QAction atAction = 0 
)

◆ removeAction()

void QMenuProto::removeAction ( QAction action)

◆ separatorsCollapsible()

bool QMenuProto::separatorsCollapsible ( ) const

◆ setActiveAction()

void QMenuProto::setActiveAction ( QAction act)

◆ setDefaultAction()

void QMenuProto::setDefaultAction ( QAction act)

◆ setIcon()

void QMenuProto::setIcon ( const QIcon &  icon)

◆ setSeparatorsCollapsible()

void QMenuProto::setSeparatorsCollapsible ( bool  collapse)

◆ setTearOffEnabled()

void QMenuProto::setTearOffEnabled ( bool  enabled)

◆ setTitle()

void QMenuProto::setTitle ( const QString &  title)

◆ title()

QString QMenuProto::title ( ) const

◆ toString()

QString QMenuProto::toString ( ) const

The documentation for this class was generated from the following files:

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 6.0.0 doxygen 1.8.17