Add some TODO and fix the enums
This commit is contained in:
parent
825af7c0ca
commit
cca571f430
@ -346,17 +346,15 @@ QTime Locale::readTime(const QString &intstr, bool *ok) const
|
|||||||
QTime Locale::readLocaleTime(const QString &intstr, bool *ok, TimeFormatOptions options,
|
QTime Locale::readLocaleTime(const QString &intstr, bool *ok, TimeFormatOptions options,
|
||||||
TimeProcessingOptions processing) const
|
TimeProcessingOptions processing) const
|
||||||
{
|
{
|
||||||
return m_locale->readLocaleTime(intstr, ok, (KLocale::TimeFormatOptions)options, (KLocale::TimeProcessingOptions)processing);
|
Q_UNUSED(options)
|
||||||
}
|
Q_UNUSED(processing)
|
||||||
|
return m_locale->readLocaleTime(intstr, ok);
|
||||||
QString Locale::formatTime(const QTime &time, bool includeSecs, bool isDuration) const
|
|
||||||
{
|
|
||||||
return m_locale->formatTime(time, includeSecs, isDuration);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString Locale::formatLocaleTime(const QTime &time, TimeFormatOptions options) const
|
QString Locale::formatLocaleTime(const QTime &time, TimeFormatOptions options) const
|
||||||
{
|
{
|
||||||
return m_locale->formatLocaleTime(time, (KLocale::TimeFormatOptions)options);
|
Q_UNUSED(options)
|
||||||
|
return m_locale->formatLocaleTime(time);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Locale::use12Clock() const
|
bool Locale::use12Clock() const
|
||||||
@ -393,7 +391,9 @@ QString Locale::formatDateTime(const QDateTime &dateTime, Locale::DateFormat for
|
|||||||
|
|
||||||
QString Locale::formatDateTime(const KDateTime &dateTime, Locale::DateFormat format, DateTimeFormatOptions options) const
|
QString Locale::formatDateTime(const KDateTime &dateTime, Locale::DateFormat format, DateTimeFormatOptions options) const
|
||||||
{
|
{
|
||||||
return m_locale->formatDateTime(dateTime, (KLocale::DateFormat)format, (KLocale::DateTimeFormatOptions)options);
|
Q_UNUSED(format)
|
||||||
|
Q_UNUSED(options)
|
||||||
|
return m_locale->formatDateTime(dateTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Locale::setDateFormat(const QString &format)
|
void Locale::setDateFormat(const QString &format)
|
||||||
|
@ -22,18 +22,17 @@
|
|||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <KLocale>
|
#include <KLocale>
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
class QStringList;
|
class QString;
|
||||||
|
class QStringList; //TODO will the QStringList invokable methods work in QML?
|
||||||
class QTextCodec;
|
class QTextCodec;
|
||||||
class QDate;
|
class QDate;
|
||||||
class QTime;
|
class QTime;
|
||||||
class QDateTime;
|
class QDateTime;
|
||||||
|
|
||||||
class KDateTime;
|
class KDateTime; //TODO will this work?
|
||||||
class KCalendarSystem;
|
class KCalendarSystem;//TODO make it calendarSystem???
|
||||||
class KCurrencyCode;
|
class KCurrencyCode;//TODO will this work?
|
||||||
//class KDayPeriod;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file klocale.h
|
* \file klocale.h
|
||||||
@ -1358,6 +1357,7 @@ public:
|
|||||||
* @see encoding
|
* @see encoding
|
||||||
* @see encodingMib
|
* @see encodingMib
|
||||||
*/
|
*/
|
||||||
|
//TODO will this work?
|
||||||
Q_INVOKABLE QTextCodec *codecForEncoding() const;
|
Q_INVOKABLE QTextCodec *codecForEncoding() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2018,9 +2018,9 @@ Q_SIGNALS:
|
|||||||
void workingWeekEndDayChanged();
|
void workingWeekEndDayChanged();
|
||||||
void workingWeekStartDayChanged();
|
void workingWeekStartDayChanged();
|
||||||
};
|
};
|
||||||
|
//TODO remove the above?
|
||||||
Q_DECLARE_OPERATORS_FOR_FLAGS(Locale::DateTimeFormatOptions)
|
//Q_DECLARE_OPERATORS_FOR_FLAGS(Locale::DateTimeFormatOptions)
|
||||||
Q_DECLARE_OPERATORS_FOR_FLAGS(Locale::TimeFormatOptions)
|
//Q_DECLARE_OPERATORS_FOR_FLAGS(Locale::TimeFormatOptions)
|
||||||
Q_DECLARE_OPERATORS_FOR_FLAGS(Locale::TimeProcessingOptions)
|
//Q_DECLARE_OPERATORS_FOR_FLAGS(Locale::TimeProcessingOptions)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user