~ubuntu-sdk-team/ubuntu-ui-toolkit/locDemo

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/plugin/plugin.cpp

  • Committer: Christian Dywan
  • Date: 2014-05-19 13:11:32 UTC
  • mfrom: (1041.2.19 staging)
  • Revision ID: christian.dywan@canonical.com-20140519131132-8syc77nqqotvb744
MergeĀ lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/staging

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2012 Canonical Ltd.
 
2
 * Copyright 2012-2014 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 Lesser General Public License as published by
48
48
#include "ucurihandler.h"
49
49
#include "ucmouse.h"
50
50
#include "ucinversemouse.h"
 
51
#include "sortfiltermodel.h"
51
52
 
52
53
#include <sys/types.h>
53
54
#include <unistd.h>
186
187
 
187
188
    // register custom event
188
189
    ForwardedEvent::registerForwardedEvent();
 
190
 
 
191
    // register parent type so that properties can get/ set it
 
192
    qmlRegisterUncreatableType<QAbstractItemModel>(uri, 1, 1, "QAbstractItemModel", "Not instantiable");
 
193
 
 
194
    // register 1.1 only API
 
195
    qmlRegisterType<QSortFilterProxyModelQML>(uri, 1, 1, "SortFilterModel");
 
196
    qmlRegisterUncreatableType<FilterBehavior>(uri, 1, 1, "FilterBehavior", "Not instantiable");
 
197
    qmlRegisterUncreatableType<SortBehavior>(uri, 1, 1, "SortBehavior", "Not instantiable");
189
198
}
190
199
 
191
200
void UbuntuComponentsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)