~aacid/unity8/drag_with_quicklist

« back to all changes in this revision

Viewing changes to plugins/Utils/plugin.cpp

  • Committer: CI Train Bot
  • Author(s): Michael Zanetti
  • Date: 2015-11-12 20:40:49 UTC
  • mfrom: (1978.5.23 unity8-modeswitchwarning)
  • Revision ID: ci-train-bot@canonical.com-20151112204049-ujbdtb4gv2waay4j
Add a warning dialog when disconnecting the external monitor.

In case there are still legacy apps running, the dialog forces the user to reconnect the external monitor, or close all the legacy apps.
Approved by: Daniel d'Andrada

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include "windowstatestorage.h"
36
36
#include "constants.h"
37
37
#include "timezoneFormatter.h"
 
38
#include "applicationsfiltermodel.h"
38
39
 
39
40
static QObject *createWindowStateStorage(QQmlEngine *engine, QJSEngine *scriptEngine)
40
41
{
66
67
    qmlRegisterSingletonType<TimezoneFormatter>(uri, 0, 1, "TimezoneFormatter",
67
68
                                                [](QQmlEngine*, QJSEngine*) -> QObject* { return new TimezoneFormatter; });
68
69
    qmlRegisterType<ActiveFocusLogger>(uri, 0, 1, "ActiveFocusLogger");
 
70
    qmlRegisterType<ApplicationsFilterModel>(uri, 0, 1, "ApplicationsFilterModel");
69
71
}
70
72
 
71
73
void UtilsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)