Check-in Number:
|
2895 | |
Date: |
2002-Nov-26 18:34:02 (local)
2002-Nov-26 17:34:02 (UTC) |
User: | ms |
Branch: | |
Comment: |
Implement rudimentary add entry. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/as/as-gui/TODO 1.17 -> 1.18
--- TODO 2002/11/26 14:10:32 1.17
+++ TODO 2002/11/26 17:34:02 1.18
@@ -30,6 +30,10 @@
Remove magic numbers from cpp files to titconst like TITRAQ_INDEXREMARK
Reduce dependence to STL by removing cout to QTextStream
+Bugs
+----
+Insert adds a row after selection; not possible to add before first row
+
Dreams
------
|
|
ossp-pkg/as/as-gui/as_slot.cpp 1.15 -> 1.16
--- as_slot.cpp 2002/11/26 17:23:51 1.15
+++ as_slot.cpp 2002/11/26 17:34:02 1.16
@@ -46,15 +46,9 @@
//
void Titraqform::addEntry(void)
{
- Prototype Unimp;
- Unimp.doMbox();
-// if (!pTable->text().isEmpty()) {
-// QTableRow *pRow = new QTableRow;
-// pRow->setText(0, NULL);
-// pRow->setText(1, NULL);
-// pRow->setText(2, NULL);
-// pRow->setText(3, NULL);
-// }
+ // Adds a new row to end of table and focuses to it
+ m_pMaintable->setNumRows(m_pMaintable->numRows() + 1);
+ m_pMaintable->setCurrentCell(m_pMaintable->numRows(), 0);
}
//
|
|