uifw/AvKon/src/aknstatuspanedigitalclock.cpp
branchRCL_3
changeset 55 aecbbf00d063
parent 4 8ca85d2f0db7
child 56 d48ab3b357f1
equal deleted inserted replaced
51:fcdfafb36fe7 55:aecbbf00d063
     1 /*
     1 /*
     2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-2008 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     // Don't allow normal background drawing if
   221     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   222     // background is already drawn with a background drawer.
   222 
   223     const MCoeControlBackground* backgroundDrawer = FindBackground();
   223     CWindowGc& gc = SystemGc();
   224     if ( !backgroundDrawer &&
   224     MAknsControlContext* cc = AknsDrawUtils::ControlContext( this );
   225          AknStatuspaneUtils::ExtendedFlatLayoutActive() )
   225     AknsDrawUtils::Background( skin, cc, this, gc, Rect() );
   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         }
       
   233     }
   226     }
   234 
   227 
   235 
   228 
   236 // ---------------------------------------------------------------------------
   229 // ---------------------------------------------------------------------------
   237 // CAknStatuspaneDigitalClock::SetDimmed
   230 // CAknStatuspaneDigitalClock::SetDimmed