~macslow/unity8/swipe-dismiss-snap-decisions

« back to all changes in this revision

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

  • Committer: Daniel d'Andrada
  • Date: 2014-09-12 20:16:54 UTC
  • mto: (1229.151.17 list_on_bottom_swipe)
  • mto: This revision was merged to the branch mainline in revision 1234.
  • Revision ID: daniel.dandrada@canonical.com-20140912201654-72ao335txyosob0k
Put the branch into shape

- Add a test, even if only manual, so you can try it out.
- Refactor Splash API
- Fix Splash.backgroundColor binding loop
- Fix MainViewStyle background image
- Move Application splash properties to ApplicationInfoInterface

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    ApplicationInfoInterface::Stage stage() const { return ApplicationInfoInterface::MainStage; }
40
40
    ApplicationInfoInterface::State state() const { return ApplicationInfoInterface::Running; }
41
41
    bool focused() const { return m_focused; }
42
 
    QUrl screenshot() const { return QUrl(); }
 
42
    QString splashTitle() const override { return QString(); }
 
43
    QUrl splashImage() const override { return QUrl(); }
 
44
    bool splashShowHeader() const override { return true; }
 
45
    QColor splashColor() const override { return QColor(0,0,0,0); }
 
46
    QColor splashColorHeader() const override { return QColor(0,0,0,0); }
 
47
    QColor splashColorFooter() const override { return QColor(0,0,0,0); }
43
48
 
44
49
    // Methods used for mocking (not in the interface)
45
50
    void setFocused(bool focused) { m_focused = focused; Q_EMIT focusedChanged(focused); }