#include <QtDeclarative/QDeclarativeContext>
#include "qmlapplicationviewer.h"
-#include "lunarcalendar.h"
+
+#include "controller.h"
#ifdef Q_WS_MAEMO_5
#include <QtOpenGL/QGLWidget>
app.setApplicationVersion(APP_VERSION);
- LunarCalendar lc;
+ Controller ctrller;
viewer.rootContext()->setContextProperty("ROOT", &viewer);
- viewer.rootContext()->setContextProperty("LC", &lc);
+ viewer.rootContext()->setContextProperty("Controller", &ctrller);
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
- //viewer.setMainQmlFile(QLatin1String("qml/LichViet/main.qml"));
viewer.setSource(QUrl("qrc:/qml/LichViet/main.qml"));
viewer.setWindowTitle(QString::fromUtf8("Lịch Việt"));