--- as_assist.cpp 2003/02/03 14:12:08 1.96
+++ as_assist.cpp 2003/02/04 19:30:31 1.97
@@ -877,6 +877,14 @@
// Start edit controls off at right size
this->updSizes(TITRAQ_IDXALLCTRLS, -1, -1);
+ // Validate data just as it is being entered
+ connect(m_pDateedit, SIGNAL(valueChanged(const QDate &)), this, SLOT(validateData(void)));
+ connect(m_pStarttime, SIGNAL(valueChanged(const QTime &)), this, SLOT(validateData(void)));
+ connect(m_pEndtime, SIGNAL(valueChanged(const QTime &)), this, SLOT(validateData(void)));
+ connect(m_pAmount, SIGNAL(valueChanged(const QString &)), this, SLOT(validateData(void)));
+ connect(m_pTasks, SIGNAL(textChanged(const QString &)), this, SLOT(validateData(void)));
+ connect(m_pRemark, SIGNAL(textChanged(const QString &)), this, SLOT(validateData(void)));
+
// Signals sent between table cells and corresponding edit control widgets
connect(m_pLineedit, SIGNAL(textChanged(const QString &)), this, SLOT(updateLine(const QString &)));
connect(m_pUseredit, SIGNAL(textChanged(const QString &)), this, SLOT(updateUser(const QString &)));
@@ -890,14 +898,6 @@
connect(m_pTasks, SIGNAL(textChanged(const QString &)), this, SLOT(updateTask(const QString &)));
connect(m_pRemark, SIGNAL(textChanged(const QString &)), this, SLOT(updateRemark(const QString &)));
- // Validate data just as it is being entered
- connect(m_pDateedit, SIGNAL(valueChanged(const QDate &)), this, SLOT(validateData(void)));
- connect(m_pStarttime, SIGNAL(valueChanged(const QTime &)), this, SLOT(validateData(void)));
- connect(m_pEndtime, SIGNAL(valueChanged(const QTime &)), this, SLOT(validateData(void)));
- connect(m_pAmount, SIGNAL(valueChanged(const QString &)), this, SLOT(validateData(void)));
- connect(m_pTasks, SIGNAL(textChanged(const QString &)), this, SLOT(validateData(void)));
- connect(m_pRemark, SIGNAL(textChanged(const QString &)), this, SLOT(validateData(void)));
-
// Correctly update checksum and revision fields also
connect(m_pUseredit, SIGNAL(textChanged(const QString &)), this, SLOT(calcCrc(void)));
connect(m_pDateedit, SIGNAL(valueChanged(const QDate &)), this, SLOT(calcCrc(void)));
|