Commit 9bf13494 authored by Stephen Kelly's avatar Stephen Kelly
Browse files

Use KLocalizedString include where possible.

This helps KF5 portability.
parent 1b094193
......@@ -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;
}
......
......@@ -23,6 +23,7 @@
#include <kglobal.h>
#include <klocale.h>
#include <klocalizedstring.h>
namespace KAlarmCal
{
......
......@@ -40,7 +40,7 @@
#endif
#include <kglobal.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kdebug.h>
#include <QMap>
......
......@@ -35,7 +35,7 @@
using namespace KHolidays;
#include <ksystemtimezone.h>
#include <klocale.h>
#include <klocalizedstring.h>
#ifdef KALARMCAL_USE_KRESOURCES
#include <kglobal.h>
#include <kconfiggroup.h>
......
......@@ -31,6 +31,7 @@
#endif
#include <kglobal.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kdebug.h>
#include <QBitArray>
......
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