summaryrefslogtreecommitdiff
authorzecke <zecke>2002-06-28 16:07:01 (UTC)
committer zecke <zecke>2002-06-28 16:07:01 (UTC)
commitce221c2cf5b003f1033e6f0b603670ceb0bff7c7 (patch) (side-by-side diff)
tree4fb48670dbf009ad9735a003d08f0d138be317db
parentab413257c3a23f535e99f8f61468382c73bc4adb (diff)
downloadopie-ce221c2cf5b003f1033e6f0b603670ceb0bff7c7.zip
opie-ce221c2cf5b003f1033e6f0b603670ceb0bff7c7.tar.gz
opie-ce221c2cf5b003f1033e6f0b603670ceb0bff7c7.tar.bz2
Fix bug #15
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/dateentryimpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/pim/datebook/dateentryimpl.cpp b/core/pim/datebook/dateentryimpl.cpp
index 2cdda9d..33b9d9b 100644
--- a/core/pim/datebook/dateentryimpl.cpp
+++ b/core/pim/datebook/dateentryimpl.cpp
@@ -223,49 +223,50 @@ void DateEntry::init()
this, SLOT( endDateChanged( int, int, int ) ) );
connect(timePickerStart, SIGNAL( timeChanged(const QTime &) ),
this, SLOT( startTimePicked(const QTime &) ));
// install eventFilters
comboEnd->installEventFilter( this );
comboStart->installEventFilter( this );
}
/*
* Destroys the object and frees any allocated resources
*/
DateEntry::~DateEntry()
{
// no need to delete child widgets, Qt does it all for us
//cout << "Del: " << comboStart->currentText() << endl;
}
/*
* public slot
*/
void DateEntry::slotEditNote() {
QString s;
- s.sprintf("<B>%d/%d</B> ", startDate.day(), startDate.month());
+ s = "<B>"+ TimeString::longDateString( startDate ) + "</B>";
+// s.sprintf("<B>%d/%d</B> ", startDate.day(), startDate.month());
NoteEntry noteDlg(s+comboDescription->currentText(), noteStr,
this,0,TRUE);
#if defined(Q_WS_QWS) || defined(_WS_QWS_)
noteDlg.showMaximized();
#endif
if (noteDlg.exec() ) {
noteStr=noteDlg.note->text();
}
}
void DateEntry::endDateChanged( int y, int m, int d )
{
endDate.setYMD( y, m, d );
if ( endDate < startDate ) {
endDate = startDate;
}
buttonEnd->setText( TimeString::shortDate( endDate ) );
endPicker->setDate( endDate.year(), endDate.month(), endDate.day() );
}