Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
d55afc83
Commit
d55afc83
authored
Oct 01, 2019
by
David Jarvie
Browse files
Deprecate KAEvent::set() methods, use C++11 constructor initialisation
parent
b0e24d87
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
autotests/kaeventtest.cpp
View file @
d55afc83
...
...
@@ -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
);
...
...
src/kaevent.cpp
View file @
d55afc83
This diff is collapsed.
Click to expand it.
src/kaevent.h
View file @
d55afc83
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment