equal
deleted
inserted
replaced
78 void CNcsSubjectField::ConstructL( TInt aLabelTextId ) |
78 void CNcsSubjectField::ConstructL( TInt aLabelTextId ) |
79 { |
79 { |
80 FUNC_LOG; |
80 FUNC_LOG; |
81 // Create label |
81 // Create label |
82 HBufC* aTextBuf = StringLoader::LoadLC( aLabelTextId ); |
82 HBufC* aTextBuf = StringLoader::LoadLC( aLabelTextId ); |
|
83 TPtrC captionText = aTextBuf ? aTextBuf->Des() : TPtrC(); |
83 iLabel = new ( ELeave ) CNcsLabel( *this, NULL ); |
84 iLabel = new ( ELeave ) CNcsLabel( *this, NULL ); |
84 iLabel->SetTextL( aTextBuf->Des() ); |
85 iLabel->SetTextL( captionText ); |
85 CleanupStack::PopAndDestroy( aTextBuf ); |
86 |
86 // S60 Skin support |
87 // S60 Skin support |
87 iLabel->SetBrushStyle(CWindowGc::ENullBrush); |
88 iLabel->SetBrushStyle(CWindowGc::ENullBrush); |
88 |
89 |
89 iTextEditor = new ( ELeave ) CNcsEditor( iSizeObserver, ETrue, ENcsEditorSubject ); |
90 iTextEditor = new ( ELeave ) CNcsEditor( iSizeObserver, ETrue, ENcsEditorSubject, captionText ); |
|
91 CleanupStack::PopAndDestroy( aTextBuf ); |
|
92 |
90 // iTextEditor is not completely constructed until in SetContainerWindowL() |
93 // iTextEditor is not completely constructed until in SetContainerWindowL() |
91 iFocusChangeHandler = new (ELeave) CAsyncCallBack( CActive::EPriorityStandard ); |
94 iFocusChangeHandler = new (ELeave) CAsyncCallBack( CActive::EPriorityStandard ); |
92 } |
95 } |
93 |
96 |
94 // --------------------------------------------------------------------------- |
97 // --------------------------------------------------------------------------- |