itom
Loading...
Searching...
No Matches
ito::ShortcutAction Class Reference
Inheritance diagram for ito::ShortcutAction:

Public Member Functions

 ShortcutAction (const QString &text, AbstractDockWidget *parent)
 < simple action with text only (no shortcut)
 
 ShortcutAction (const QIcon &icon, const QString &text, AbstractDockWidget *parent)
 simple action with text, icon and shortcut (context is the same in docked and undocked state)
 
 ShortcutAction (const QIcon &icon, const QString &text, AbstractDockWidget *parent, const QKeySequence &key, Qt::ShortcutContext context=Qt::WindowShortcut)
 simple action with text, icon and shortcut (different contexts for docked and undocked state)
 
 ShortcutAction (const QIcon &icon, const QString &text, AbstractDockWidget *parent, const QKeySequence &key, Qt::ShortcutContext dockedContext, Qt::ShortcutContext undockedContext)
 < Action with text, icon and shortcut (different contexts for docked and undocked state)
 
void connectTrigger (const QObject *receiver, const char *method, Qt::ConnectionType type=Qt::AutoConnection)
 
void setEnabled (bool actionEnabled, bool shortcutEnabled)
 
void setEnabled (bool enabled)
 
void setVisible (bool actionVisible, bool shortcutEnabled)
 
void setVisible (bool visible)
 
QAction * action () const
 

Private Slots

void parentDockStateChanged (bool docked)
 

Private Attributes

QPointer< QAction > m_action
 
QPointer< QShortcut > m_shortcut
 
Qt::ShortcutContext m_dockedShortcut
 
Qt::ShortcutContext m_undockedShortcut
 

Constructor & Destructor Documentation

◆ ShortcutAction()

ito::ShortcutAction::ShortcutAction ( const QString & text,
AbstractDockWidget * parent )

< simple action with text only (no shortcut)

simple action with text and icon only (no shortcut)


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