Skip to content
GitLab
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
9bf13494
Commit
9bf13494
authored
Feb 26, 2013
by
Stephen Kelly
Browse files
Use KLocalizedString include where possible.
This helps KF5 portability.
parent
1b094193
Changes
5
Hide whitespace changes
Inline
Side-by-side
alarmtext.cpp
View file @
9bf13494
...
...
@@ -28,6 +28,7 @@
#include
<kcal/todo.h>
#endif
#include
<klocale.h>
#include
<klocalizedstring.h>
#include
<kglobal.h>
#include
<QStringList>
...
...
@@ -126,7 +127,7 @@ void AlarmText::setText(const QString& text)
d
->
mType
=
Private
::
Script
;
}
void
AlarmText
::
setScript
(
const
QString
&
text
)
void
AlarmText
::
setScript
(
const
QString
&
text
)
{
setText
(
text
);
d
->
mType
=
Private
::
Script
;
...
...
@@ -281,22 +282,22 @@ bool AlarmText::isEmpty() const
return
d
->
mFrom
.
isEmpty
()
&&
d
->
mTo
.
isEmpty
()
&&
d
->
mCc
.
isEmpty
()
&&
d
->
mTime
.
isEmpty
()
&&
d
->
mSubject
.
isEmpty
();
}
bool
AlarmText
::
isEmail
()
const
bool
AlarmText
::
isEmail
()
const
{
return
d
->
mType
==
Private
::
Email
;
}
bool
AlarmText
::
isScript
()
const
bool
AlarmText
::
isScript
()
const
{
return
d
->
mType
==
Private
::
Script
;
}
bool
AlarmText
::
isTodo
()
const
bool
AlarmText
::
isTodo
()
const
{
return
d
->
mType
==
Private
::
Todo
;
}
unsigned
long
AlarmText
::
kmailSerialNumber
()
const
unsigned
long
AlarmText
::
kmailSerialNumber
()
const
{
return
d
->
mKMailSerialNum
;
}
...
...
datetime.cpp
View file @
9bf13494
...
...
@@ -23,6 +23,7 @@
#include
<kglobal.h>
#include
<klocale.h>
#include
<klocalizedstring.h>
namespace
KAlarmCal
{
...
...
kacalendar.cpp
View file @
9bf13494
...
...
@@ -40,7 +40,7 @@
#endif
#include
<kglobal.h>
#include
<klocal
e
.h>
#include
<klocal
izedstring
.h>
#include
<kdebug.h>
#include
<QMap>
...
...
kaevent.cpp
View file @
9bf13494
...
...
@@ -35,7 +35,7 @@
using
namespace
KHolidays
;
#include
<ksystemtimezone.h>
#include
<klocal
e
.h>
#include
<klocal
izedstring
.h>
#ifdef KALARMCAL_USE_KRESOURCES
#include
<kglobal.h>
#include
<kconfiggroup.h>
...
...
karecurrence.cpp
View file @
9bf13494
...
...
@@ -31,6 +31,7 @@
#endif
#include
<kglobal.h>
#include
<klocale.h>
#include
<klocalizedstring.h>
#include
<kdebug.h>
#include
<QBitArray>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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