~unity-api-team/hud/test-failures

« back to all changes in this revision

Viewing changes to libhud-client/HudToolbarModel.cpp

  • Committer: Tarmac
  • Author(s): Pete Woods
  • Date: 2014-01-28 23:07:50 UTC
  • mfrom: (361.2.5 trunk)
  • Revision ID: tarmac-20140128230750-ye5nzc59jf6zpxdx
Re-enable quit action in HUD client library. Fixes: https://bugs.launchpad.net/bugs/1269409.

Approved by Ted Gould, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
static QString iconForAction(int action) {
28
28
        switch (action) {
 
29
        case HUD_CLIENT_QUERY_TOOLBAR_QUIT:
 
30
                return "graphics/close.png";
29
31
        case HUD_CLIENT_QUERY_TOOLBAR_UNDO:
30
32
                return "graphics/undo.png";
31
33
        case HUD_CLIENT_QUERY_TOOLBAR_HELP:
48
50
HudToolBarModel::HudToolBarModel(HudClientQuery *query) :
49
51
                p(new Priv()) {
50
52
        p->m_query = query;
51
 
        p->m_actions << HUD_CLIENT_QUERY_TOOLBAR_UNDO
 
53
        p->m_actions << HUD_CLIENT_QUERY_TOOLBAR_QUIT
 
54
                        << HUD_CLIENT_QUERY_TOOLBAR_UNDO
52
55
                        << HUD_CLIENT_QUERY_TOOLBAR_HELP
53
56
                        << HUD_CLIENT_QUERY_TOOLBAR_FULLSCREEN
54
57
                        << HUD_CLIENT_QUERY_TOOLBAR_PREFERENCES;