~zsombi/ubuntu-ui-toolkit/listitemSelectModeBugs

« back to all changes in this revision

Viewing changes to src/Ubuntu/Components/plugin/quickutils.h

  • Committer: Zsombor Egri
  • Date: 2015-11-16 06:35:05 UTC
  • mfrom: (1664.1.1 listitemSelectModeBugs)
  • Revision ID: zsombor.egri@canonical.com-20151116063505-cwn2qfks7qzk10g9
re-sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    Q_PROPERTY(QQuickItem *rootObject READ rootObject NOTIFY rootObjectChanged)
32
32
    Q_PROPERTY(QString inputMethodProvider READ inputMethodProvider)
33
33
    Q_PROPERTY(bool touchScreenAvailable READ touchScreenAvailable NOTIFY touchScreenAvailableChanged)
 
34
    Q_PROPERTY(bool mouseAttached MEMBER m_mouseAttached NOTIFY mouseAttachedChanged)
34
35
public:
35
36
    static QuickUtils& instance()
36
37
    {
48
49
    QObject* createQmlObject(const QUrl &url, QQmlEngine *engine);
49
50
    static bool showDeprecationWarnings();
50
51
 
 
52
    bool mouseAttached()
 
53
    {
 
54
        return m_mouseAttached;
 
55
    }
 
56
 
51
57
Q_SIGNALS:
52
58
    void rootObjectChanged();
53
59
    void activated();
54
60
    void deactivated();
55
61
    void touchScreenAvailableChanged();
 
62
    void mouseAttachedChanged();
56
63
 
57
64
protected:
58
65
    bool eventFilter(QObject *, QEvent *);
61
68
    explicit QuickUtils(QObject *parent = 0);
62
69
    QPointer<QQuickView> m_rootView;
63
70
    QStringList m_omitIM;
 
71
    bool m_mouseAttached;
64
72
 
65
73
    void lookupQuickView();
66
74
};