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

#include <epicsstringlineedit.h>

Inheritance diagram for EpicsStringLineEdit:
Inheritance graph

Public Slots

void changeEpicsString ()
 

Public Member Functions

 EpicsStringLineEdit (EpicsString *var, QWidget *parent=0)
 
virtual ~EpicsStringLineEdit ()
 

Private Attributes

EpicsStringm_EpicsString
 

Detailed Description

Definition at line 9 of file epicsstringlineedit.h.

Constructor & Destructor Documentation

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

Definition at line 4 of file epicsstringlineedit.cpp.

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

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

Definition at line 15 of file epicsstringlineedit.cpp.

16 {
17 }

Member Function Documentation

void EpicsStringLineEdit::changeEpicsString ( )
slot

Definition at line 19 of file epicsstringlineedit.cpp.

References m_EpicsString.

Referenced by EpicsStringLineEdit().

20 {
21  m_EpicsString -> caput(text());
22 }
EpicsString * m_EpicsString

Member Data Documentation

EpicsString* EpicsStringLineEdit::m_EpicsString
private

Definition at line 20 of file epicsstringlineedit.h.

Referenced by changeEpicsString(), and EpicsStringLineEdit().


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