equal
deleted
inserted
replaced
426 soundSystem = iSoundSystem; |
426 soundSystem = iSoundSystem; |
427 } |
427 } |
428 |
428 |
429 CAknsFrameBackgroundControlContext* cc = (CAknsFrameBackgroundControlContext*)AknsDrawUtils::ControlContext( this ); |
429 CAknsFrameBackgroundControlContext* cc = (CAknsFrameBackgroundControlContext*)AknsDrawUtils::ControlContext( this ); |
430 cc->SetCenter(KAknsIIDQsnFrPopupCenterQuery); |
430 cc->SetCenter(KAknsIIDQsnFrPopupCenterQuery); |
431 |
431 |
432 // Check Query is wait of not. |
432 TBool isWaitDialog(EFalse); |
433 TBool isWaitDialog( ( DialogFlags() & EEikDialogFlagWait ) != 0 ); |
433 |
434 |
434 if ( DialogFlags() & EEikDialogFlagWait ) |
|
435 { |
|
436 isWaitDialog = ETrue; |
|
437 } |
435 SetGloballyCapturing(ETrue); |
438 SetGloballyCapturing(ETrue); |
436 TInt ret = CAknDialog::RunLD(); |
439 TInt ret = CAknDialog::RunLD(); |
437 _AKNTRACE( "[%s][%s] ret: %d", "CAknQueryDialog", __FUNCTION__, ret ); |
440 _AKNTRACE( "[%s][%s] ret: %d", "CAknQueryDialog", __FUNCTION__, ret ); |
438 if (soundSystem) |
441 if (soundSystem) |
439 { |
442 { |
440 soundSystem->PopContext(); |
443 soundSystem->PopContext(); |
441 } |
444 } |
442 // If wait QueryDialog, instance will be deleted right after RunLD via CBA |
445 |
443 if ( !isWaitDialog ) |
446 if ( !isWaitDialog ) |
444 { |
447 { |
445 SetGloballyCapturing(EFalse); |
448 SetGloballyCapturing(EFalse); |
446 } |
449 } |
447 |
450 |
2119 TInt line2 = FindLineIndex(*secondControl); |
2122 TInt line2 = FindLineIndex(*secondControl); |
2120 CEikCaptionedControl *ctrl1 = GetLineByLineAndPageIndex(line1, 0); |
2123 CEikCaptionedControl *ctrl1 = GetLineByLineAndPageIndex(line1, 0); |
2121 CEikCaptionedControl *ctrl2 = GetLineByLineAndPageIndex(line2, 0); |
2124 CEikCaptionedControl *ctrl2 = GetLineByLineAndPageIndex(line2, 0); |
2122 TryChangeFocusToL(ctrl2->iId); |
2125 TryChangeFocusToL(ctrl2->iId); |
2123 HandleOrientationSwitch(); |
2126 HandleOrientationSwitch(); |
2124 // In landscape mode, the first and second lines are at the same position, |
|
2125 // so set the height of first line¡¯s control to 0 to prevent it from being |
|
2126 // selected by touch event. |
|
2127 ctrl1->SetSize( TSize( ctrl1->Size().iWidth, 0 ) ); |
|
2128 |
2127 |
2129 UpdateLeftSoftKeyL(); |
2128 UpdateLeftSoftKeyL(); |
2130 _AKNTRACE( "[%s][%s] return EFalse", "CAknMultiLineDataQueryDialog", __FUNCTION__); |
2129 _AKNTRACE( "[%s][%s] return EFalse", "CAknMultiLineDataQueryDialog", __FUNCTION__); |
2131 return EFalse; |
2130 return EFalse; |
2132 } |
2131 } |