~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to examples/apps/plainqt/plainqt.cpp

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20130723194704-0o18p2ao0x9sa1zx
Tags: upstream-0.99.0+git20130615+97e8335
ImportĀ upstreamĀ versionĀ 0.99.0+git20130615+97e8335

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include "mainwindow.h"
16
16
 
17
17
#include <QApplication>
18
 
#if (defined(Q_WS_QPA) || defined(Q_WS_QWS)) && (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
19
 
#include <QInputContextFactory>
20
 
#endif
21
18
 
22
19
int main(int argc, char** argv)
23
20
{
24
21
    QApplication kit(argc, argv);
25
 
#if (defined(Q_WS_QPA) || defined(Q_WS_QWS)) && (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
26
 
    // Workaround for lighthouse Qt
27
 
    kit.setInputContext(QInputContextFactory::create("Maliit", &kit));
28
 
#endif
29
22
 
30
23
    MainWindow window;
31
24
    return kit.exec();