QXRD  0.11.16
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
QcepStringPropertyLineEditHelper Class Reference

#include <qcepproperty.h>

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

Public Slots

void setText (QString value, int index)
 
void setText (QString value)
 

Signals

void textEdited (QString value, int index)
 

Public Member Functions

 QcepStringPropertyLineEditHelper (QLineEdit *lineEdit, QcepStringProperty *property)
 
void connect ()
 

Private Attributes

QLineEdit * m_LineEdit
 
QcepStringPropertym_Property
 

Detailed Description

Definition at line 290 of file qcepproperty.h.

Constructor & Destructor Documentation

QcepStringPropertyLineEditHelper::QcepStringPropertyLineEditHelper ( QLineEdit *  lineEdit,
QcepStringProperty property 
)

Definition at line 1489 of file qcepproperty.cpp.

1490  : QObject(lineEdit),
1491  m_LineEdit(lineEdit),
1492  m_Property(property)
1493 {
1494 }
QcepStringProperty * m_Property
Definition: qcepproperty.h:306

Member Function Documentation

void QcepStringPropertyLineEditHelper::connect ( )

Definition at line 1496 of file qcepproperty.cpp.

References CONNECT_CHECK, m_LineEdit, setText(), and textEdited().

1497 {
1498  CONNECT_CHECK(QObject::connect(m_LineEdit, SIGNAL(textEdited(QString)), this, SLOT(setText(QString)), Qt::DirectConnection));
1499 }
void textEdited(QString value, int index)
void setText(QString value, int index)
#define CONNECT_CHECK(res)
Definition: qcepmacros.h:14

Here is the call graph for this function:

void QcepStringPropertyLineEditHelper::setText ( QString  value,
int  index 
)
slot

Definition at line 1501 of file qcepproperty.cpp.

References QcepProperty::debug(), DEBUG_PROPERTIES, QcepProperty::index(), m_LineEdit, m_Property, QcepProperty::name(), QcepProperty::printMessage(), qcepDebug(), and QcepByteArrayProperty::value().

Referenced by connect().

1502 {
1504  m_Property->printMessage(tr("%1: QcepStringPropertyLineEditHelper::setText(QString \"%2\", int %3) [%4,%5]")
1505  .arg(m_Property->name()).arg(value).arg(index)
1506  .arg(m_Property->index()).arg(m_LineEdit->text()));
1507  }
1508 
1509  if (m_Property->index() == index) {
1510  if (m_LineEdit->text() != value) {
1512  m_Property->printMessage(tr("%1: QcepStringPropertyLineEditHelper lineEdit %2 set to %3")
1513  .arg(m_Property->name()).arg(m_LineEdit->objectName()).arg(value));
1514  }
1515 
1516  bool block = m_LineEdit->blockSignals(true);
1517  m_LineEdit->setText(value);
1518  m_LineEdit->blockSignals(block);
1519  }
1520  }
1521 }
qint64 qcepDebug(int cond)
Definition: qcepdebug.cpp:26
virtual void printMessage(QString msg, QDateTime dt=QDateTime::currentDateTime())
QcepStringProperty * m_Property
Definition: qcepproperty.h:306
QString name() const
int debug() const

Here is the call graph for this function:

Here is the caller graph for this function:

void QcepStringPropertyLineEditHelper::setText ( QString  value)
slot

Definition at line 1523 of file qcepproperty.cpp.

References QcepProperty::debug(), DEBUG_PROPERTIES, QcepProperty::incIndex(), m_Property, QcepProperty::name(), QcepProperty::printMessage(), qcepDebug(), and textEdited().

1524 {
1526  m_Property->printMessage(tr("%1: QcepStringPropertyLineEditHelper::setText(QString \"%2\")")
1527  .arg(m_Property->name()).arg(value));
1528  }
1529 
1530  emit textEdited(value, m_Property->incIndex(1));
1531 }
qint64 qcepDebug(int cond)
Definition: qcepdebug.cpp:26
void textEdited(QString value, int index)
int incIndex(int step)
virtual void printMessage(QString msg, QDateTime dt=QDateTime::currentDateTime())
QcepStringProperty * m_Property
Definition: qcepproperty.h:306
QString name() const
int debug() const

Here is the call graph for this function:

void QcepStringPropertyLineEditHelper::textEdited ( QString  value,
int  index 
)
signal

Referenced by connect(), and setText().

Here is the caller graph for this function:

Member Data Documentation

QLineEdit* QcepStringPropertyLineEditHelper::m_LineEdit
private

Definition at line 305 of file qcepproperty.h.

Referenced by connect(), and setText().

QcepStringProperty* QcepStringPropertyLineEditHelper::m_Property
private

Definition at line 306 of file qcepproperty.h.

Referenced by setText().


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