~unity-team/unity8/slim-greeter

« back to all changes in this revision

Viewing changes to plugins/Utils/plugin.cpp

  • Committer: Michael Terry
  • Date: 2015-02-12 15:45:21 UTC
  • mfrom: (1432.1.178 unity8)
  • Revision ID: michael.terry@canonical.com-20150212154521-1qpg3t501ljj88lj
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include "unitymenumodelpaths.h"
34
34
#include "windowkeysfilter.h"
35
35
#include "easingcurve.h"
 
36
#include "windowstatestorage.h"
 
37
 
 
38
static QObject *createWindowStateStorage(QQmlEngine *engine, QJSEngine *scriptEngine)
 
39
{
 
40
    Q_UNUSED(engine)
 
41
    Q_UNUSED(scriptEngine)
 
42
    return new WindowStateStorage();
 
43
}
36
44
 
37
45
void UtilsPlugin::registerTypes(const char *uri)
38
46
{
46
54
    qmlRegisterType<GDateTimeFormatter>(uri, 0, 1, "GDateTimeFormatter");
47
55
    qmlRegisterType<EasingCurve>(uri, 0, 1, "EasingCurve");
48
56
    qmlRegisterType<RelativeTimeFormatter>(uri, 0, 1, "RelativeTimeFormatter");
 
57
    qmlRegisterSingletonType<WindowStateStorage>(uri, 0, 1, "WindowStateStorage", createWindowStateStorage);
49
58
}
50
59
 
51
60
void UtilsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)