~mzanetti/unity8/launcher_folded_quicklist

« back to all changes in this revision

Viewing changes to tests/plugins/Unity/Launcher/launchermodeltest.cpp

  • Committer: CI Train Bot
  • Author(s): Michael Terry, Michał Sawicz
  • Date: 2015-12-08 15:36:23 UTC
  • mfrom: (2077.1.5 fix-wakelocks)
  • Revision ID: ci-train-bot@canonical.com-20151208153623-cqcksj1jnaiglcpn
Let qtmir know which apps are exempt from the lifecycle management.
This way, it can manage its own wakelocks better (and stop preventing the system from deep sleeping).

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    Qt::ScreenOrientations supportedOrientations() const override { return Qt::PortraitOrientation; }
60
60
    bool rotatesWindowContents() const override { return false; }
61
61
    bool isTouchApp() const override { return true; }
 
62
    bool exemptFromLifecycle() const override { return false; }
 
63
    void setExemptFromLifecycle(bool) override {}
62
64
 
63
65
    // Methods used for mocking (not in the interface)
64
66
    void setFocused(bool focused) { m_focused = focused; Q_EMIT focusedChanged(focused); }