Commit d55afc83 authored by David Jarvie's avatar David Jarvie
Browse files

Deprecate KAEvent::set() methods, use C++11 constructor initialisation

parent b0e24d87
......@@ -1225,8 +1225,7 @@ void KAEventTest::toKCalEvent()
{
// Event category, UID, revision, start time using time zone, created time
KAEvent event;
event.set(dt, text, bgColour, fgColour, font, KAEvent::MESSAGE, 3, KAEvent::CONFIRM_ACK);
KAEvent event(dt, text, bgColour, fgColour, font, KAEvent::MESSAGE, 3, KAEvent::CONFIRM_ACK);
event.setEventId(uid);
event.incrementRevision();
event.incrementRevision();
......@@ -1254,8 +1253,7 @@ void KAEventTest::toKCalEvent()
{
// Start time using LocalZone
const KADateTime dt(QDate(2010,5,13), QTime(3, 45, 0), KADateTime::LocalZone);
KAEvent event;
event.set(dt, text, bgColour, fgColour, font, KAEvent::MESSAGE, 3, KAEvent::CONFIRM_ACK);
KAEvent event(dt, text, bgColour, fgColour, font, KAEvent::MESSAGE, 3, KAEvent::CONFIRM_ACK);
event.setEventId(uid);
event.incrementRevision();
event.setCategory(CalEvent::ACTIVE);
......
This diff is collapsed.
......@@ -360,8 +360,9 @@ public:
* set numerous KAEvent properties; non-KAlarm properties are simply stored.
* - Custom status if equal to "DISABLED".
* - Revision number.
* @deprecated Use constructor and operator=() instead.
*/
void set(const KCalendarCore::Event::Ptr &);
KALARMCAL_DEPRECATED void set(const KCalendarCore::Event::Ptr &);
KAEvent(const KAEvent &other);
~KAEvent();
......@@ -384,8 +385,9 @@ public:
* @param changesPending true to inhibit automatic data updates until
* further changes have been applied to the instance;
* call endChanges() when changes are complete.
* @deprecated Use constructor and operator=() instead.
*/
void set(const KADateTime &dt, const QString &text, const QColor &bg,
KALARMCAL_DEPRECATED void set(const KADateTime &dt, const QString &text, const QColor &bg,
const QColor &fg, const QFont &font, SubAction action, int lateCancel,
Flags flags, bool changesPending = false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment