void CAknKeyLockControl::ShowKeylockCba() { RDrawableWindow* cbaWindow = iKeyLockCba->ButtonGroup()->AsControl()->DrawableWindow(); cbaWindow->SetFaded(EFalse, RWindowTreeNode::EFadeWindowOnly); cbaWindow->SetOrdinalPosition(0,1); cbaWindow->SetNonFading(ETrue); }
void QSoftKeyManagerPrivateS60::ensureCbaVisibilityAndResponsiviness(CEikButtonGroupContainer &cba) { RDrawableWindow *cbaWindow = cba.DrawableWindow(); Q_ASSERT_X(cbaWindow, Q_FUNC_INFO, "Native CBA does not have window!"); // Make sure CBA is visible, i.e. CBA window is on top cbaWindow->SetOrdinalPosition(0); // Qt shares same CBA instance between top-level widgets, // make sure we are not faded by underlying window. cbaWindow->SetFaded(EFalse, RWindowTreeNode::EFadeIncludeChildren); // Modal dialogs capture pointer events, but shared cba instance // shall stay responsive. Raise pointer capture priority to keep // softkeys responsive in modal dialogs cbaWindow->SetPointerCapturePriority(1); }