UltraScan III
List of all members | Signals | Public Member Functions | Private Slots | Private Attributes
US_Action Class Reference

A subclass of QAction to allow sending an integer when a menu item is selected. More...

#include "us.h"

Inheritance diagram for US_Action:
Inheritance graph
[legend]
Collaboration diagram for US_Action:
Collaboration graph
[legend]

Signals

void indexTriggered (int)
 A signal to send with the index of the menu selected. More...
 

Public Member Functions

 US_Action (int, const QString &, QObject *)
 Create a new QAction and connect the action to the private slot onTriggered. More...
 

Private Slots

void onTriggered (bool)
 A function to accept a normal QAction signal and emit indexTriggered. More...
 

Private Attributes

int index
 

Detailed Description

A subclass of QAction to allow sending an integer when a menu item is selected.

Definition at line 66 of file us.h.

Constructor & Destructor Documentation

US_Action::US_Action ( int  i,
const QString &  text,
QObject *  parent 
)

Create a new QAction and connect the action to the private slot onTriggered.

Parameters
iThe index number to send when triggered.
textThe menu label to be displayed.
parentA pointer to the parent menu.

Definition at line 93 of file us.cpp.

Member Function Documentation

void US_Action::indexTriggered ( int  )
signal

A signal to send with the index of the menu selected.

void US_Action::onTriggered ( bool  )
privateslot

A function to accept a normal QAction signal and emit indexTriggered.

Definition at line 100 of file us.cpp.

Member Data Documentation

int US_Action::index
private

Definition at line 90 of file us.h.


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