LMMS
Loading...
Searching...
No Matches
lmms::gui::ActionGroup Class Reference

Convenience subclass of QActionGroup. More...

#include <ActionGroup.h>

Inheritance diagram for lmms::gui::ActionGroup:

Signals

void triggered (int index)
 This signal is emitted when the action at the given index is triggered.

Public Member Functions

 ActionGroup (QObject *parent)
QAction * addAction (QAction *a)
QAction * addAction (const QString &text)
QAction * addAction (const QIcon &icon, const QString &text)

Private Slots

void actionTriggered_ (QAction *action)

Private Attributes

QList< QAction * > m_actions

Detailed Description

Convenience subclass of QActionGroup.

This class provides the same functionality as QActionGroup, but in addition has the actionTriggered(int) signal. It also sets every added action's checkable property to true.

Constructor & Destructor Documentation

◆ ActionGroup()

lmms::gui::ActionGroup::ActionGroup ( QObject * parent)

Member Function Documentation

◆ actionTriggered_

void lmms::gui::ActionGroup::actionTriggered_ ( QAction * action)
privateslot

◆ addAction() [1/3]

QAction * lmms::gui::ActionGroup::addAction ( const QIcon & icon,
const QString & text )

◆ addAction() [2/3]

QAction * lmms::gui::ActionGroup::addAction ( const QString & text)

◆ addAction() [3/3]

QAction * lmms::gui::ActionGroup::addAction ( QAction * a)

◆ triggered

void lmms::gui::ActionGroup::triggered ( int index)
signal

This signal is emitted when the action at the given index is triggered.

Member Data Documentation

◆ m_actions

QList<QAction*> lmms::gui::ActionGroup::m_actions
private

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