equal
deleted
inserted
replaced
397 // We wait until the control is fully constructed before calling setWinId, because |
397 // We wait until the control is fully constructed before calling setWinId, because |
398 // this generates a WinIdChanged event. |
398 // this generates a WinIdChanged event. |
399 setWinId(control.take()); |
399 setWinId(control.take()); |
400 if (!desktop) |
400 if (!desktop) |
401 s60UpdateIsOpaque(); |
401 s60UpdateIsOpaque(); |
|
402 |
|
403 if (!desktop) |
|
404 s60UpdateIsOpaque(); // must be called after setWinId() |
402 |
405 |
403 } else if (q->testAttribute(Qt::WA_NativeWindow) || paintOnScreen()) { // create native child widget |
406 } else if (q->testAttribute(Qt::WA_NativeWindow) || paintOnScreen()) { // create native child widget |
404 |
407 |
405 QScopedPointer<QSymbianControl> control( q_check_ptr(new QSymbianControl(q)) ); |
408 QScopedPointer<QSymbianControl> control( q_check_ptr(new QSymbianControl(q)) ); |
406 QT_TRAP_THROWING(control->ConstructL(!parentWidget)); |
409 QT_TRAP_THROWING(control->ConstructL(!parentWidget)); |
1121 if (statusPane) |
1124 if (statusPane) |
1122 statusPane->MakeVisible(visible); |
1125 statusPane->MakeVisible(visible); |
1123 if (buttonGroup) { |
1126 if (buttonGroup) { |
1124 // Visibility |
1127 // Visibility |
1125 buttonGroup->MakeVisible(visible || (isFullscreen && cbaRequested)); |
1128 buttonGroup->MakeVisible(visible || (isFullscreen && cbaRequested)); |
1126 |
|
1127 // Responsiviness |
|
1128 CEikCba *cba = static_cast<CEikCba *>( buttonGroup->ButtonGroup() ); // downcast from MEikButtonGroup |
|
1129 TUint cbaFlags = cba->ButtonGroupFlags(); |
|
1130 if(windowFlags() & Qt::WindowSoftkeysRespondHint) |
|
1131 cbaFlags |= EAknCBAFlagRespondWhenInvisible; |
|
1132 else |
|
1133 cbaFlags &= ~EAknCBAFlagRespondWhenInvisible; |
|
1134 cba->SetButtonGroupFlags(cbaFlags); |
|
1135 } |
1129 } |
1136 #endif // Q_WS_S60 |
1130 #endif // Q_WS_S60 |
1137 |
1131 |
1138 // Ensure the initial size is valid, since we store it as normalGeometry below. |
1132 // Ensure the initial size is valid, since we store it as normalGeometry below. |
1139 if (!wasResized && !isVisible()) |
1133 if (!wasResized && !isVisible()) |