qmca  0.0.20
Public Slots | Public Member Functions | Private Attributes | List of all members
EpicsStringDisplay Class Reference

#include <epicsstringdisplay.h>

Inheritance diagram for EpicsStringDisplay:
Inheritance graph

Public Slots

void valueChanged (QString v)
 

Public Member Functions

 EpicsStringDisplay (EpicsString *var, QWidget *parent=0)
 
 ~EpicsStringDisplay ()
 

Private Attributes

EpicsStringm_EpicsString
 

Detailed Description

Definition at line 8 of file epicsstringdisplay.h.

Constructor & Destructor Documentation

EpicsStringDisplay::EpicsStringDisplay ( EpicsString var,
QWidget *  parent = 0 
)

Definition at line 4 of file epicsstringdisplay.cpp.

References m_EpicsString, EpicsObject::toolTip(), EpicsString::value(), and valueChanged().

5  : QLabel(parent),
6  m_EpicsString(var)
7 {
8  connect(var, SIGNAL(valueChanged(QString)), this, SLOT(valueChanged(QString)));
9 
10  setText(m_EpicsString->value());
11  setToolTip(m_EpicsString->toolTip());
12 }
void valueChanged(QString v)
QString value()
Definition: epicsstring.cpp:77
QString toolTip()
Definition: epicsobject.cpp:35
EpicsString * m_EpicsString
EpicsStringDisplay::~EpicsStringDisplay ( )

Definition at line 14 of file epicsstringdisplay.cpp.

15 {
16 }

Member Function Documentation

void EpicsStringDisplay::valueChanged ( QString  v)
slot

Definition at line 18 of file epicsstringdisplay.cpp.

Referenced by EpicsStringDisplay().

19 {
20  setText(v);
21 }

Member Data Documentation

EpicsString* EpicsStringDisplay::m_EpicsString
private

Definition at line 20 of file epicsstringdisplay.h.

Referenced by EpicsStringDisplay().


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