1 /* |
1 /* |
2 * Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-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". |
216 // (other items were commented in a header). |
216 // (other items were commented in a header). |
217 // --------------------------------------------------------------------------- |
217 // --------------------------------------------------------------------------- |
218 // |
218 // |
219 void CAknStatuspaneDigitalClock::Draw( const TRect& /*aRect*/ ) const |
219 void CAknStatuspaneDigitalClock::Draw( const TRect& /*aRect*/ ) const |
220 { |
220 { |
221 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
221 // Don't allow normal background drawing if |
222 |
222 // background is already drawn with a background drawer. |
223 CWindowGc& gc = SystemGc(); |
223 const MCoeControlBackground* backgroundDrawer = FindBackground(); |
224 MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); |
224 if ( !backgroundDrawer && |
225 AknsDrawUtils::Background( skin, cc, this, gc, Rect() ); |
225 AknStatuspaneUtils::ExtendedFlatLayoutActive() ) |
|
226 { |
|
227 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
|
228 |
|
229 CWindowGc& gc = SystemGc(); |
|
230 MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); |
|
231 AknsDrawUtils::Background( skin, cc, this, gc, Rect() ); |
|
232 } |
226 } |
233 } |
227 |
234 |
228 |
235 |
229 // --------------------------------------------------------------------------- |
236 // --------------------------------------------------------------------------- |
230 // CAknStatuspaneDigitalClock::SetDimmed |
237 // CAknStatuspaneDigitalClock::SetDimmed |