~dandrader/qtubuntu/cursor

« back to all changes in this revision

Viewing changes to src/ubuntumirclient/integration.h

  • Committer: CI Train Bot
  • Author(s): Daniel d'Andrada
  • Date: 2015-09-14 13:12:16 UTC
  • mfrom: (274.3.1 provideMirConnection)
  • Revision ID: ci-train-bot@canonical.com-20150914131216-vybw4n8nyvwnid26
Add QPlatformNativeInterface::nativeResourceForIntegration("mirConnection")

Allow Qt applications to access the underlying MirConnection.
Approved by: PS Jenkins bot, Gerry Boland

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
class UbuntuClipboard;
30
30
class UbuntuInput;
 
31
class UbuntuNativeInterface;
31
32
class UbuntuScreen;
32
33
 
33
34
class UbuntuClientIntegration : public QPlatformIntegration {
38
39
    // QPlatformIntegration methods.
39
40
    bool hasCapability(QPlatformIntegration::Capability cap) const override;
40
41
    QAbstractEventDispatcher *createEventDispatcher() const override;
41
 
    QPlatformNativeInterface* nativeInterface() const override { return mNativeInterface; }
 
42
    QPlatformNativeInterface* nativeInterface() const override;
42
43
    QPlatformBackingStore* createPlatformBackingStore(QWindow* window) const override;
43
44
    QPlatformOpenGLContext* createPlatformOpenGLContext(QOpenGLContext* context) const override;
44
45
    QPlatformFontDatabase* fontDatabase() const override { return mFontDb; }
58
59
    void setupOptions();
59
60
    void setupDescription();
60
61
 
61
 
    QPlatformNativeInterface* mNativeInterface;
 
62
    UbuntuNativeInterface* mNativeInterface;
62
63
    QPlatformFontDatabase* mFontDb;
63
64
 
64
65
    UbuntuPlatformServices* mServices;