Add CalendarSystem to the qmlRegisterType<>()
This commit is contained in:
parent
31cc381819
commit
7269926c13
@ -21,12 +21,14 @@
|
|||||||
#include "localebindingsplugin.h"
|
#include "localebindingsplugin.h"
|
||||||
#include <QtDeclarative/qdeclarative.h>
|
#include <QtDeclarative/qdeclarative.h>
|
||||||
#include "locale.h"
|
#include "locale.h"
|
||||||
|
#include "calendarsystem.h"
|
||||||
|
|
||||||
void LocaleBindingsPlugin::registerTypes(const char *uri)
|
void LocaleBindingsPlugin::registerTypes(const char *uri)
|
||||||
{
|
{
|
||||||
Q_ASSERT(uri == QLatin1String("org.kde.plasma.locale"));
|
Q_ASSERT(uri == QLatin1String("org.kde.plasma.locale"));
|
||||||
|
|
||||||
qmlRegisterType<Locale>(uri, 0, 1, "Locale");
|
qmlRegisterType<Locale>(uri, 0, 1, "Locale");
|
||||||
|
qmlRegisterType<CalendarSystem>(uri, 0, 1, "CalendarSystem");
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "localebindingsplugin.moc"
|
#include "localebindingsplugin.moc"
|
||||||
|
Loading…
Reference in New Issue
Block a user