~ci-train-bot/unity8/unity8-ubuntu-zesty-2702

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Application/MirSurface.cpp

  • Committer: Bileto Bot
  • Author(s): Daniel d'Andrada
  • Date: 2017-03-28 21:46:10 UTC
  • mfrom: (2890.1.1 childWindowFocus)
  • Revision ID: ci-train-bot@canonical.com-20170328214610-p3dzgzaqvdmvaa26
Give active focus to child surface qml items (LP: #1671072)

Approved by: Lukáš Tinkl, Unity8 CI Bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
452
452
void MirSurface::close()
453
453
{
454
454
    DEBUG_MSG("");
 
455
 
 
456
    for (int i = 0; i < m_childSurfaceList->count(); ++i) {
 
457
        m_childSurfaceList->get(i)->close();
 
458
    }
 
459
 
455
460
    if (!m_zombieTimer.isActive()) {
456
461
        m_zombieTimer.start();
457
462
        Q_EMIT closeRequested();