ossp-pkg/as/as-gui/as_slot.cpp 1.61 -> 1.62
--- as_slot.cpp 2002/12/13 23:42:37 1.61
+++ as_slot.cpp 2002/12/16 10:45:25 1.62
@@ -92,6 +92,12 @@
nRows = Selection.contains(QChar('\n')); // How many rows
this->addEntry(nRows); // Reuse slot
setRowdata(Selection); // Use accessor
+
+ // Update line numbers for this new row and all subsequent rows
+ for (int nIter = m_pMaintable->currentRow(); nIter < m_pMaintable->numRows(); nIter++)
+ m_pMaintable->setText(nIter, TITRAQ_IDXLINE, QString::number(nIter).rightJustify(4, QChar('0')));
+
+ // Do basic data validation to warn against missing fields
for (int nIter = 0; nIter <= nRows; nIter++)
this->validateData(m_pMaintable->currentRow() + nIter, 0);
}
|
|