qmca  0.0.20
epicsintegercheckbox.cpp
Go to the documentation of this file.
1 #include "epicsintegercheckbox.h"
2 #include "epicsinteger.h"
3 
5  : QCheckBox(parent),
6  m_EpicsInteger(var)
7 {
8  connect(this, SIGNAL(toggled(bool)), this, SLOT(changeEpicsInteger()));
9  connect(m_EpicsInteger, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
10 
12  setToolTip(m_EpicsInteger->toolTip());
13 }
14 
16 {
17 }
18 
20 {
21  return isChecked();
22 }
23 
25 {
26  m_EpicsInteger -> caput(value());
27 }
28 
30 {
31  setChecked(val);
32 }
EpicsIntegerCheckBox(EpicsInteger *var, QWidget *parent=0)
EpicsInteger * m_EpicsInteger
QString toolTip()
Definition: epicsobject.cpp:35