~unity-team/unity8/trunk

« back to all changes in this revision

Viewing changes to tests/mocks/GSettings.1.0/plugin.cpp

Skip parts of the edge tutorial that require a touch device (like spread and bottom edge).

For now, we just use "desktop-mode" to imply "no-touch-device".  In the future, presumably Design will provide different tutorial layouts for the various device modes we support.  For now, they have only blessed a phone version.  So I just skip the problematic parts. Fixes: #1434712
Approved by: PS Jenkins bot, Albert Astals Cid

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include <QtQml/qqml.h>
21
21
 
22
 
static QObject* controllerProvider(QQmlEngine* /* engine */, QJSEngine* /* scriptEngine */)
23
 
{
24
 
    return GSettingsControllerQml::instance();
25
 
}
26
 
 
27
22
void FakeGSettingsQmlPlugin::registerTypes(const char *uri)
28
23
{
29
 
    qmlRegisterSingletonType<GSettingsControllerQml>(uri, 1, 0, "GSettingsController", controllerProvider);
30
24
    qmlRegisterType<GSettingsQml>(uri, 1, 0, "GSettings");
31
25
    qmlRegisterUncreatableType<GSettingsSchemaQml>(uri, 1, 0, "GSettingsSchema",
32
26
                                                   "GSettingsSchema can only be used inside of a GSettings component");