~azzar1/unity8/record-test-failure

« back to all changes in this revision

Viewing changes to plugins/Utils/plugin.cpp

  • Committer: Tarmac
  • Author(s): Nick Dedekind, Launchpad Translations on behalf of unity-team
  • Date: 2013-07-11 19:50:27 UTC
  • mfrom: (2.5.114 indicators-client)
  • Revision ID: tarmac-20130711195027-yheu3w2oc42c1h7s
Moved indicators-client code into unity8. Fixes: https://bugs.launchpad.net/bugs/1191132, https://bugs.launchpad.net/bugs/1191822.

Approved by PS Jenkins bot, Michał Sawicz, Nicolas d'Offay.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "plugin.h"
25
25
 
26
26
// local
 
27
#include "applicationpaths.h"
27
28
#include "qlimitproxymodelqml.h"
28
29
#include "qsortfilterproxymodelqml.h"
29
30
#include "ubuntuwindow.h"
30
31
 
 
32
static QObject* applicationsPathsSingleton(QQmlEngine* engine, QJSEngine* scriptEngine) {
 
33
  Q_UNUSED(engine);
 
34
  Q_UNUSED(scriptEngine);
 
35
  return new ApplicationPaths;
 
36
}
 
37
 
31
38
void UtilsPlugin::registerTypes(const char *uri)
32
39
{
33
40
    Q_ASSERT(uri == QLatin1String("Utils"));
35
42
    qmlRegisterType<QLimitProxyModelQML>(uri, 0, 1, "LimitProxyModel");
36
43
    qmlRegisterType<QSortFilterProxyModelQML>(uri, 0, 1, "SortFilterProxyModel");
37
44
    qmlRegisterExtendedType<QQuickWindow, UbuntuWindow>(uri, 0, 1, "Window");
 
45
    qmlRegisterSingletonType<ApplicationPaths>(uri, 0, 1, "ApplicationPaths", applicationsPathsSingleton);
38
46
}