Class IntegerAction

Inheritance Relationships

Base Type

  • public QAction

Class Documentation

class IntegerAction : public QAction

A simple subclass of QAction which keeps an ID number and emits a signal with that number when it is triggered.

Public Functions

IntegerAction(const QString &text, QObject *parent, int id)

Public Members

int id_

Signals

void triggered(int id)

Emitted when the action is triggered, sends the ID.