~ci-train-bot/ubuntu-system-settings/ubuntu-system-settings-ubuntu-vivid-2451

« back to all changes in this revision

Viewing changes to tests/mocks/SystemSettings/plugin.cpp

  • Committer: Bileto Bot
  • Author(s): Jonas G. Drange, Ken VanDine
  • Date: 2016-12-07 15:16:59 UTC
  • mfrom: (1728.1.9 main_list_view)
  • Revision ID: ci-train-bot@canonical.com-20161207151659-1geuqsfkt82mth1m
* Replaces the grid with a list
* Replaces MainWindow search with PageHeader search
* Adds testing of new PageHeader search (and mocks PluginManager. This is a bit hacky, since SystemSettings implicitly provides PluginManager in main.cpp)

Approved by: Jonas G. Drange, Ken VanDine

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of system-settings
 
3
 *
 
4
 * Copyright (C) 2016 Canonical Ltd.
 
5
 *
 
6
 * This program is free software: you can redistribute it and/or modify it
 
7
 * under the terms of the GNU General Public License version 3, as published
 
8
 * by the Free Software Foundation.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful, but
 
11
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
12
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
13
 * PURPOSE.  See the GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License along
 
16
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
#include "plugin.h"
 
20
#include "MockPluginManager.h"
 
21
 
 
22
#include <QtQml>
 
23
 
 
24
void BackendPlugin::registerTypes(const char *uri)
 
25
{
 
26
    Q_ASSERT(uri == QLatin1String("SystemSettings"));
 
27
    qmlRegisterType<MockPluginManager>(uri, 1, 0, "PluginManager");
 
28
}