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

« back to all changes in this revision

Viewing changes to src/maliit/plugins/abstractinputmethodhost.cpp

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Sergio Schvezov, Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mfrom: (1.1.2) (1.2.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130723194704-1lsy1kmlda069cea
Tags: 0.99.0+git20130615+97e8335-0ubuntu1
[ Sergio Schvezov ]
* New build from HEAD 97e8335.
* Packaging import from lp:phablet-extras/maliit-framework.

[ Ricardo Salveti de Araujo ]
* debian/control: adding vcs and fixing dependencies
* General package cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include <maliit/plugins/abstractinputmethodhost.h>
16
16
#include <maliit/plugins/subviewdescription.h>
17
17
 
18
 
#if defined(Q_WS_X11)
19
 
#include "mimxapplication.h"
20
 
#endif
21
 
 
22
18
class MAbstractInputMethodHostPrivate
23
19
{
24
20
public:
56
52
 
57
53
QPixmap MAbstractInputMethodHost::background() const
58
54
{
59
 
#if defined(Q_WS_X11)
60
 
    // Check whether we are really running a MIMApplication first.
61
 
    // For instance, unit tests in other packages might use !MIMApplication,
62
 
    // as they don't have access to the MIMApplication headers.
63
 
    if (qobject_cast<MImXApplication *>(QCoreApplication::instance())) {
64
 
        return MImXApplication::instance()->serverLogic()->remoteWindowPixmap();
65
 
    } else {
66
 
        return QPixmap();
67
 
    }
68
 
#else
69
55
    return QPixmap();
70
 
#endif
71
56
}
72
57
 
73
58
QList<MImSubViewDescription>