From 4ddc90a51f8a4d248ece9a86d01ef636fe8c95e2 Mon Sep 17 00:00:00 2001 From: umopapisdn Date: Mon, 24 Mar 2003 10:09:47 +0000 Subject: Bugfix: Duplicating events introduced a bug making it impossible to add events Week List view. This fixes it. --- (limited to 'core') diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp index e8e12ba..5334a16 100644 --- a/core/pim/datebook/datebookweeklst.cpp +++ b/core/pim/datebook/datebookweeklst.cpp @@ -137,7 +137,7 @@ void DateBookWeekLstDayHdr::newEvent() { start.setTime(QTime(10,0)); stop.setTime(QTime(12,0)); - emit addEvent(start,stop,""); + emit addEvent(start,stop,"",0); } DateBookWeekLstEvent::DateBookWeekLstEvent(const EffectiveEvent &ev, QWidget* parent, @@ -200,10 +200,10 @@ DateBookWeekLstView::DateBookWeekLstView(QValueList &ev, this, SIGNAL(showDate(int,int,int))); connect(hdr, SIGNAL(addEvent(const QDateTime &, const QDateTime &, - const QString &)), + const QString &, const QString &)), this, SIGNAL(addEvent(const QDateTime &, const QDateTime &, - const QString &))); + const QString &, const QString &))); layout->addWidget(hdr); // Events @@ -239,9 +239,9 @@ DateBookWeekLstDblView::DateBookWeekLstDblView(QValueList &ev1, connect (w, SIGNAL(showDate(int,int,int)), this, SIGNAL(showDate(int,int,int))); connect (w, SIGNAL(addEvent(const QDateTime &, const QDateTime &, - const QString &)), + const QString &,const QString &)), this, SIGNAL(addEvent(const QDateTime &, const QDateTime &, - const QString &))); + const QString &, const QString &))); w=new DateBookWeekLstView(ev2,d.addDays(7),onM,this); @@ -251,9 +251,9 @@ DateBookWeekLstDblView::DateBookWeekLstDblView(QValueList &ev1, connect (w, SIGNAL(showDate(int,int,int)), this, SIGNAL(showDate(int,int,int))); connect (w, SIGNAL(addEvent(const QDateTime &, const QDateTime &, - const QString &)), + const QString &, const QString &)), this, SIGNAL(addEvent(const QDateTime &, const QDateTime &, - const QString &))); + const QString &, const QString &))); } DateBookWeekLst::DateBookWeekLst( bool ap, bool onM, DateBookDB *newDB, @@ -341,9 +341,9 @@ void DateBookWeekLst::getEvents() { connect (view, SIGNAL(showDate(int,int,int)), this, SIGNAL(showDate(int,int,int))); connect (view, SIGNAL(addEvent(const QDateTime &, const QDateTime &, - const QString &)), + const QString &, const QString &)), this, SIGNAL(addEvent(const QDateTime &, const QDateTime &, - const QString &))); + const QString &, const QString &))); scroll->addChild(view); view->show(); diff --git a/core/pim/datebook/datebookweeklst.h b/core/pim/datebook/datebookweeklst.h index 24f6c83..ea88f20 100644 --- a/core/pim/datebook/datebookweeklst.h +++ b/core/pim/datebook/datebookweeklst.h @@ -50,7 +50,7 @@ public slots: signals: void showDate(int y, int m, int d); void addEvent(const QDateTime &start, const QDateTime &stop, - const QString &str); + const QString &str, const QString &location); private: QDate date; }; @@ -82,7 +82,7 @@ signals: void editEvent(const Event &e); void showDate(int y, int m, int d); void addEvent(const QDateTime &start, const QDateTime &stop, - const QString &str); + const QString &str, const QString &location); private: bool onMonday; protected slots: @@ -101,7 +101,7 @@ signals: void editEvent(const Event &e); void showDate(int y, int m, int d); void addEvent(const QDateTime &start, const QDateTime &stop, - const QString &str); + const QString &str, const QString &location); }; class DateBookWeekLst : public QWidget @@ -129,7 +129,7 @@ protected slots: signals: void showDate(int y, int m, int d); void addEvent(const QDateTime &start, const QDateTime &stop, - const QString &str); + const QString &str, const QString &location); void editEvent(const Event &e); private: -- cgit v0.9.0.2