meetingrequest/mrguicommon/src/cmrlabel.cpp
branchRCL_3
changeset 22 d620048b4810
parent 16 b5fbb9b25d57
--- a/meetingrequest/mrguicommon/src/cmrlabel.cpp	Mon Jun 21 15:20:54 2010 +0300
+++ b/meetingrequest/mrguicommon/src/cmrlabel.cpp	Thu Jul 15 18:19:25 2010 +0300
@@ -29,13 +29,13 @@
 // CMRLabel::NewL
 // ---------------------------------------------------------------------------
 //
-EXPORT_C CMRLabel* CMRLabel::NewL()
+EXPORT_C CMRLabel* CMRLabel::NewL( const CCoeControl* aParent )
     {
     FUNC_LOG;
     
     CMRLabel* self = new (ELeave) CMRLabel();
     CleanupStack::PushL( self );
-    self->ConstructL();
+    self->ConstructL( aParent );
     CleanupStack::Pop( self );
     return self;
     }
@@ -44,12 +44,17 @@
 // CMRLabel::ConstructL
 // ---------------------------------------------------------------------------
 //
-void CMRLabel::ConstructL()
+void CMRLabel::ConstructL( const CCoeControl* aParent )
     {
     FUNC_LOG;
 
     NMRColorManager::SetColor( *this, 
                                NMRColorManager::EMRMainAreaTextColor );
+    
+    if ( aParent )
+        {
+        SetContainerWindowL( *aParent );
+        }
     }
 
 // ---------------------------------------------------------------------------