Check-in Number:
|
3884 | |
Date: |
2002-Dec-16 17:23:36 (local)
2002-Dec-16 16:23:36 (UTC) |
User: | ms |
Branch: | |
Comment: |
Add missing view switch menu item, and use a slightly better display rendering
algorythm. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/as/as-gui/as_assist.cpp 1.72 -> 1.73
--- as_assist.cpp 2002/12/16 16:05:57 1.72
+++ as_assist.cpp 2002/12/16 16:23:36 1.73
@@ -377,6 +377,8 @@
m_pTbarspopup->setItemChecked(nMenuid, true);
nMenuid = m_pTbarspopup->insertItem(trUtf8("&Edit"), this, SLOT(showEditbar()));
m_pTbarspopup->setItemChecked(nMenuid, true);
+ nMenuid = m_pTbarspopup->insertItem(trUtf8("&View"), this, SLOT(showViewbar()));
+ m_pTbarspopup->setItemChecked(nMenuid, true);
nMenuid = m_pTbarspopup->insertItem(trUtf8("&Whats"), this, SLOT(showWhatsbar()));
m_pTbarspopup->setItemChecked(nMenuid, true);
m_pViewpopup->insertSeparator();
|
|
ossp-pkg/as/as-gui/as_slot.cpp 1.63 -> 1.64
--- as_slot.cpp 2002/12/16 16:05:57 1.63
+++ as_slot.cpp 2002/12/16 16:23:36 1.64
@@ -216,13 +216,15 @@
//
void Titraqform::refreshDisplay(void)
{
- int nIter = m_pMaintable->numRows(); // Iterate through total rows
+ int nIter = 0; // Matrix iterator
+ int nRows = m_pMaintable->numRows(); // Total number of rows
// Sweep through matrix validating linewise
// data and updating line numbers for all rows
- while (--nIter >= 0) {
+ while (nIter < nRows) {
this->validateData(nIter, 0);
m_pMaintable->setText(nIter, TITRAQ_IDXLINE, QString::number(nIter).rightJustify(4, QChar('0')));
+ nIter++;
}
this->repaint(); // Do a general repaint of viewable area
|
|