ossp-pkg/as/as-gui/as_assist.cpp 1.88 -> 1.89
--- as_assist.cpp 2003/01/29 17:05:31 1.88
+++ as_assist.cpp 2003/01/30 14:36:00 1.89
@@ -778,8 +778,7 @@
m_pEditlayout->addWidget(m_pRevedit); // Finally add the revision edit
// Make the date selector
- m_pDateedit = new QDateEdit(m_pCenframe, "Date");
- m_pDatezero = new QDate(m_pDateedit->date()); // Hack to store empty date
+ m_pDateedit = new Daydatedit(QDate::currentDate(), m_pCenframe, "Date");
if (m_pDateedit == NULL) // Sanity check
throw Genexcept("Main window date edit creation failed."); // Spew errors
@@ -996,8 +995,10 @@
void Titraqform::enableIface(bool bTurned)
{
// FIXME: Does not belong here, so relocate
- if (!bTurned)
+ if (!bTurned) // Turn off the interface
m_pMaintable->setNumRows(0); // Remove table data
+ else // Turn on the interface
+ m_pDateedit->setDayfocus(); // Default focus is on day
// Enable or disable the widgets
m_pMaintable->setEnabled(bTurned);
|
|