OSSP CVS Repository

ossp - Check-in [3825]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3825
Date: 2002-Dec-04 12:34:08 (local)
2002-Dec-04 11:34:08 (UTC)
User:ms
Branch:
Comment: Correct dynamic refresh behaviour of table data from edit widgets.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/TODO      1.27 -> 1.28     1 inserted, 0 deleted
ossp-pkg/as/as-gui/as_assist.cpp      1.41 -> 1.42     1 inserted, 1 deleted
ossp-pkg/as/as-gui/as_gui.h      1.38 -> 1.39     1 inserted, 1 deleted
ossp-pkg/as/as-gui/as_slot.cpp      1.32 -> 1.33     3 inserted, 2 deleted

ossp-pkg/as/as-gui/TODO 1.27 -> 1.28

--- TODO 2002/12/03 17:37:40     1.27
+++ TODO 2002/12/04 11:34:08     1.28
@@ -29,6 +29,7 @@
 Reduce dependence to STL by removing cout to QTextStream
 Ausblendbare Spalten
 Check all identifiers for undeutig unique scope
+Some signals implemented in Titraqform really belong in satellite classes
 
 Beim Editmodus
 ---------------


ossp-pkg/as/as-gui/as_assist.cpp 1.41 -> 1.42

--- as_assist.cpp        2002/12/03 19:07:55     1.41
+++ as_assist.cpp        2002/12/04 11:34:08     1.42
@@ -630,7 +630,7 @@
     connect(m_pDateedit, SIGNAL(valueChanged(const QDate &)), this, SLOT(updateDate(const QDate &)));
     connect(m_pStarttime, SIGNAL(valueChanged(const QTime &)), this, SLOT(updateStart(const QTime &)));
     connect(m_pEndtime, SIGNAL(valueChanged(const QTime &)), this, SLOT(updateFinish(const QTime &)));
-    connect(m_pAmount, SIGNAL(valueChanged(int)), this, SLOT(updateAmount(int)));
+    connect(m_pAmount, SIGNAL(valueChanged(const QString &)), this, SLOT(updateAmount(const QString &)));
     connect(m_pTasks, SIGNAL(textChanged(const QString &)), this, SLOT(updateTask(const QString &)));
     connect(m_pRemark, SIGNAL(textChanged(const QString &)), this, SLOT(updateRemark(const QString &)));
 }


ossp-pkg/as/as-gui/as_gui.h 1.38 -> 1.39

--- as_gui.h     2002/12/03 19:07:55     1.38
+++ as_gui.h     2002/12/04 11:34:08     1.39
@@ -130,7 +130,7 @@
     void updateDate(const QDate &);     // Update date column
     void updateStart(const QTime &);    // Update start column
     void updateFinish(const QTime &);   // Update finish column
-    void updateAmount(int);             // Update amount column
+    void updateAmount(const QString &); // Update amount column
     void updateTask(const QString &);   // Update task column
     void updateRemark(const QString &); // Update remark column
     void confirmEdit(void);             // Confirm whole row edition


ossp-pkg/as/as-gui/as_slot.cpp 1.32 -> 1.33

--- as_slot.cpp  2002/12/03 19:07:55     1.32
+++ as_slot.cpp  2002/12/04 11:34:08     1.33
@@ -340,9 +340,10 @@
 //
 // Update the current amount column item
 //
-void Titraqform::updateAmount(int nAmountup)
+void Titraqform::updateAmount(const QString &Amountup)
 {
-    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXAMOUNT, trUtf8("%1").arg(nAmountup));
+    // Ignore incoming data and use widget managed data because its easier
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXAMOUNT, m_pAmount->text());
 }
 
 //

CVSTrac 2.0.1