~aacid/unity8/desktopRotatedCamera

« back to all changes in this revision

Viewing changes to plugins/Cursor/plugin.cpp

  • Committer: Albert Astals Cid
  • Date: 2016-06-02 07:43:13 UTC
  • mfrom: (2039.198.42 unity8)
  • Revision ID: albert.astals@canonical.com-20160602074313-qycavrlys0yftjfd
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2015 Canonical, Ltd.
 
2
 * Copyright (C) 2015-2016 Canonical, Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
22
22
#include "plugin.h"
23
23
 
24
24
// local
 
25
#include "CursorImageInfo.h"
25
26
#include "CursorImageProvider.h"
26
27
#include "MousePointer.h"
27
28
 
28
29
void CursorPlugin::registerTypes(const char *uri)
29
30
{
30
31
    Q_ASSERT(uri == QLatin1String("Cursor"));
31
 
    qmlRegisterType<MousePointer>(uri, 1, 0, "MousePointer");
 
32
    qmlRegisterType<CursorImageInfo>(uri, 1, 1, "CursorImageInfo");
 
33
    qmlRegisterType<MousePointer>(uri, 1, 1, "MousePointer");
32
34
}
33
35
 
34
36
void CursorPlugin::initializeEngine(QQmlEngine *engine, const char *uri)