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

An overloaded QPushButton to allow an index to be set and a signal to be emitted with the index. Allows the connected handler to tell which buttone was pushed. More...

#include "us_associations_gui.h"

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

Signals

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

Public Member Functions

 US_PushButton (const QString &, int)
 
void setIndex (int i)
 A utility to set the pushbutton's index. More...
 

Private Slots

void mousePressEvent (QMouseEvent *)
 

Private Attributes

int index
 

Detailed Description

An overloaded QPushButton to allow an index to be set and a signal to be emitted with the index. Allows the connected handler to tell which buttone was pushed.

Definition at line 56 of file us_associations_gui.h.

Constructor & Destructor Documentation

US_PushButton::US_PushButton ( const QString &  text,
int  i 
)

Constructor for the pushbutton

Parameters
textLabel for the pushbutton
iValue to be used to identify the pushbutton

Definition at line 8 of file us_associations_gui.cpp.

Member Function Documentation

void US_PushButton::mousePressEvent ( QMouseEvent *  e)
privateslot

Definition at line 18 of file us_associations_gui.cpp.

void US_PushButton::pushed ( int  )
signal

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

void US_PushButton::setIndex ( int  i)
inline

A utility to set the pushbutton's index.

Parameters
iValue to be saved

Definition at line 67 of file us_associations_gui.h.

Member Data Documentation

int US_PushButton::index
private

Definition at line 74 of file us_associations_gui.h.


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