summaryrefslogtreecommitdiff
path: root/core/pim/datebook/dateentryimpl.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/datebook/dateentryimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/datebook/dateentryimpl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/pim/datebook/dateentryimpl.cpp b/core/pim/datebook/dateentryimpl.cpp
index 1122f79..b2e3e3a 100644
--- a/core/pim/datebook/dateentryimpl.cpp
+++ b/core/pim/datebook/dateentryimpl.cpp
@@ -38,12 +38,14 @@
#include <qscrollview.h>
#include <qspinbox.h>
#include <qtoolbutton.h>
#include <stdlib.h>
+#include <stdiostream.h>
+
/*
* Constructs a DateEntry which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
@@ -55,12 +57,13 @@ DateEntry::DateEntry( bool startOnMonday, const QDateTime &start,
: DateEntryBase( parent, name ),
ampm( whichClock ),
startWeekOnMonday( startOnMonday )
{
init();
setDates(start,end);
+ setFocusProxy(comboDescription);
}
static void addOrPick( QComboBox* combo, const QString& t )
{
for (int i=0; i<combo->count(); i++) {
if ( combo->text(i) == t ) {
@@ -173,12 +176,13 @@ void DateEntry::init()
/*
* 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::endDateChanged( int y, int m, int d )
@@ -267,12 +271,13 @@ void DateEntry::startDateChanged( int y, int m, int d )
* public slot
*/
void DateEntry::startTimeChanged( int index )
{
startTime = parseTime(comboStart->text(index),ampm);
changeEndCombo( index );
+ //cout << "Start: " << comboStart->currentText() << endl;
}
/*
* public slot
*/
void DateEntry::typeChanged( const QString &s )
{
@@ -379,12 +384,15 @@ Event DateEntry::event()
else
st = Event::Silent;
ev.setAlarm( checkAlarm->isChecked(), spinAlarm->value(), st );
if ( rp.type != Event::NoRepeat )
ev.setRepeat( TRUE, rp );
ev.setNotes( editNote->text() );
+
+ //cout << "Start: " << comboStart->currentText() << endl;
+
return ev;
}
void DateEntry::setRepeatLabel()
{