OSSP CVS Repository

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

ossp-pkg/as/as-gui/as_assist.cpp 1.27 -> 1.28

--- as_assist.cpp        2002/11/26 21:28:57     1.27
+++ as_assist.cpp        2002/11/26 22:22:53     1.28
@@ -404,6 +404,7 @@
     m_pMaintable->setReadOnly(true);                    // Table is read only
     m_pMaintable->setColumnMovingEnabled(false);        // Ctrl-drag disabled
     m_pMaintable->setSelectionMode(QTable::SingleRow);  // Multi row selection
+    m_pMaintable->setCurrentCell(-1, 0);                // Initial row value -1
     m_pMaintable->setFocusStyle(QTable::FollowStyle);   // How cells are drawn
     m_pMaintable->setLeftMargin(0);             // Get rid of the vertical header
     m_pMaintable->verticalHeader()->hide();     // by hiding it with a margin of 0
@@ -436,8 +437,8 @@
 void Titraqform::setupEditlay(void)
 {
     // Make the date selector
-    QDate Sylvestre(2002, 12, 31);
-    m_pDateedit = new QDateEdit(Sylvestre, m_pCenframe, "Date");
+    m_pDateedit = new QDateEdit(m_pCenframe, "Date");
+    m_pDatezero = new QDate(m_pDateedit->date());                   // Hack to store empty date
     if (m_pDateedit == NULL)                                        // Sanity check
         throw Genexcept("Main window date edit creation failed.");  // Spew errors
 
@@ -446,7 +447,7 @@
     m_pDateedit->setAutoAdvance(true);
     m_pDateedit->setSeparator(trUtf8("."));
 
-    m_pDatelayout->addWidget(m_pDateedit);                       // Finally add the date editor
+    m_pDatelayout->addWidget(m_pDateedit);                          // Finally add the date editor
     QToolTip::add(m_pDateedit, trUtf8("Task Date"));
 
     // Whatsthis info for the date editor
@@ -562,6 +563,7 @@
     if (m_pConfirmbutton == NULL)   // Sanity check
         throw Genexcept("Main window confirm button creation failed.");
     m_pConfirmbutton->setCursor(QCursor(13));
+    m_pConfirmbutton->setPaletteBackgroundColor(QColor(206, 192, 176));
     m_pConfirmbutton->setText(trUtf8("&Confirm"));
     QToolTip::add(m_pConfirmbutton, trUtf8("Confirm Editing"));
     connect(m_pConfirmbutton, SIGNAL(clicked()), this, SLOT(confirmEdit()));

CVSTrac 2.0.1