~osomon/ubuntu-system-settings/autopkgtest

« back to all changes in this revision

Viewing changes to plugins/brightness/plugin.cpp

  • Committer: CI Train Bot
  • Author(s): Ken VanDine
  • Date: 2016-04-28 15:31:33 UTC
  • mfrom: (1636.2.51 brightness_displays)
  • Revision ID: ci-train-bot@canonical.com-20160428153133-6pvbgv2e0arzn3op
Added Display Casting to the brightness panel

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <QtQml>
24
24
#include <QtQml/QQmlContext>
25
25
#include "brightness.h"
 
26
#include "aethercast/aethercast_helper.h"
 
27
#include "aethercast/displays.h"
 
28
#include "aethercast/device.h"
26
29
 
27
30
 
28
31
void BackendPlugin::registerTypes(const char *uri)
29
32
{
30
33
    Q_ASSERT(uri == QLatin1String("Ubuntu.SystemSettings.Brightness"));
31
34
 
 
35
    // Register additional QtDBus types we need
 
36
    qDBusRegisterMetaType<InterfaceList>();
 
37
    qDBusRegisterMetaType<ManagedObjectList>();
 
38
 
32
39
    qmlRegisterType<Brightness>(uri, 1, 0, "UbuntuBrightnessPanel");
 
40
    qmlRegisterType<Device>(uri, 1, 0, "AethercastDevice");
 
41
    qmlRegisterType<Displays>(uri, 1, 0, "AethercastDisplays");
33
42
}
34
43
 
35
44
void BackendPlugin::initializeEngine(QQmlEngine *engine, const char *uri)