OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_assist.cpp versions 1.8 and 1.9
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_assist.cpp 1.8 -> 1.9

--- as_assist.cpp        2002/11/21 15:37:08     1.8
+++ as_assist.cpp        2002/11/22 19:42:25     1.9
@@ -250,7 +250,6 @@
     m_pMaintable = new QTable(m_pCenframe, "Maintable");
     if (m_pMaintable == NULL)   // Sanity check
         throw Genexcept("Main window table creation failed.");
-    m_pMaintable->setNumRows(g_knRows);
     m_pMaintable->setNumCols(g_knCols);
     m_pMaintable->setReadOnly(true);                    // Table is read only
     m_pMaintable->setColumnMovingEnabled(false);        // Ctrl-drag disabled
@@ -259,7 +258,7 @@
     m_pMaintable->verticalHeader()->hide();     // by hiding it with a margin of 0
     m_pMaintable->horizontalHeader()->setResizeEnabled(false);
     m_pMaintable->setColumnStretchable(g_knCols - 1, true);
-    m_pMaintable->setSorting(true);
+    m_pMaintable->setSorting(false);
 
     // Table header row
     m_pTablehead = m_pMaintable->horizontalHeader();
@@ -271,11 +270,7 @@
     m_pTablehead->setLabel(4, QObject::trUtf8("Task"), 70);
     m_pTablehead->setLabel(5, QObject::trUtf8("Remark"));
 
-//    // Make a generic table item for all rows
-//    for (int i = 0; i < g_knRows; ++i)
-//        m_pMaintable->setItem(i, 0, new QTableItem(m_pMaintable, QTableItem::WhenCurrent, NULL));
-
-    m_pPackagelayout->addWidget(m_pMaintable); // Finally add the damn table
+    m_pPackagelayout->addWidget(m_pMaintable);  // Finally add the damn table
 }
 
 //

CVSTrac 2.0.1