89ab6b21c2bf3b5dfdfd60bd3c9c72525cf3639e
[scorecard] / src / main.cpp
1 /*
2  * Copyright (C) 2009 Sakari Poussa
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, version 2.
7  */
8
9 #include <QtCore/QtCore>
10 #include <QtGui/QtGui>
11 #include <QInputContext>
12
13 #include "main-window.h"
14
15 int main(int argc, char *argv[])
16 {
17   QApplication app(argc, argv);
18
19 #ifdef Q_WS_HILDON
20   QStringList keys = QInputContextFactory::keys();
21   qDebug() << "Input Context Factory keys: " << keys;
22   QInputContext *hildonInputContext=0;
23   hildonInputContext=QInputContextFactory::create("hildon", 0);
24   app.setInputContext(hildonInputContext);
25 #endif
26
27   MainWindow win;
28   win.show();
29
30   return app.exec();
31 }