Commit 48a80ca6 authored by David Jarvie's avatar David Jarvie
Browse files

KLocale -> QLocale

parent 567d48da
......@@ -44,14 +44,6 @@ int localeFirstDayOfWeek()
return firstDay;
}
/******************************************************************************
* Return the week day name (Monday = 1).
*/
QString weekDayName(int day, const KLocale* locale)
{
return QLocale().dayName(day);
}
/******************************************************************************
* Return the default work days in the week, as a bit mask.
* They are determined by the start and end work days in system settings.
......
......@@ -21,9 +21,6 @@
#ifndef LOCALE_H
#define LOCALE_H
#include <QString>
class KLocale;
namespace KAlarm
{
......@@ -32,9 +29,6 @@ namespace KAlarm
*/
int localeFirstDayOfWeek();
/** Return the week day name (Monday = 1). */
QString weekDayName(int day, const KLocale*);
/* Given a standard KDE day number, return the day number in the week for the user's locale.
* Standard day number = 1 (Mon) .. 7 (Sun)
* Locale day number in week = 0 .. 6
......@@ -47,7 +41,7 @@ inline int weekDay_to_localeDayInWeek(int weekDay) { return (weekDay + 7 - loca
*/
inline int localeDayInWeek_to_weekDay(int index) { return (index + localeFirstDayOfWeek() - 1) % 7 + 1; }
uint defaultWorkDays();
unsigned defaultWorkDays();
} // namespace KAlarm
......
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