equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
209 TBool CAknItemActionMenu::CollectionHighlightVisible() const |
209 TBool CAknItemActionMenu::CollectionHighlightVisible() const |
210 { |
210 { |
211 TBool highlightVisible( ETrue ); |
211 TBool highlightVisible( ETrue ); |
212 for ( TInt i = 0; i < iStates.Count(); i++ ) |
212 for ( TInt i = 0; i < iStates.Count(); i++ ) |
213 { |
213 { |
214 MAknCollection* state( iStates[ i ] ); |
214 MAknCollection* collection( iStates[ i ] ); |
215 if ( state->CollectionState() & |
215 TUint state = collection->CollectionState(); |
216 MAknCollection::EStateCollectionVisible ) |
216 |
217 { |
217 highlightVisible = state & MAknCollection::EStateHighlightVisible; |
218 highlightVisible = state->CollectionState() |
218 |
219 & MAknCollection::EStateHighlightVisible; |
219 if ( highlightVisible ) |
|
220 { |
|
221 // Highlight can't be visible if the collection is not visible. |
|
222 highlightVisible = state & MAknCollection::EStateCollectionVisible; |
220 break; |
223 break; |
221 } |
224 } |
222 } |
225 } |
223 return highlightVisible; |
226 return highlightVisible; |
224 } |
227 } |