ossp-pkg/as/as-gui/as_slot.cpp 1.92 -> 1.93
--- as_slot.cpp 2003/01/28 17:33:55 1.92
+++ as_slot.cpp 2003/01/30 14:36:01 1.93
@@ -35,7 +35,6 @@
#include <qclipboard.h>
#include <qmenudata.h>
#include <qdatastream.h>
-//#include <qregexp.h>
// User interface
#include "as_gui.h" // Main classes
@@ -43,6 +42,7 @@
#include "as_tableitem.h" // For our custom table items
#include "as_generic.h" // Generic classes
#include "as_uuid.h" // UUID classes
+#include "as_datedit.h" // Derived from QDateEdit
// RPC headers
#ifdef HAVE_ESOAP
@@ -732,7 +732,7 @@
if (!Textdate.isEmpty())
m_pDateedit->setDate(QDate::fromString(Textdate, Qt::ISODate));
else
- m_pDateedit->setDate(*m_pDatezero);
+ m_pDateedit->setDate(QDate::currentDate());
if (!Textstart.isEmpty())
m_pStarttime->setTime(QTime::fromString(Textstart, Qt::ISODate));
else
@@ -841,9 +841,6 @@
//
void Titraqform::updateDate(const QDate &Dateup)
{
- if (Dateup == *m_pDatezero) // Complete the already nasty hack
- m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXDATE, trUtf8(TITRAQ_DATEZERO));
- else
m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXDATE, Dateup.toString("yyyy.MM.dd"));
}
|
|