--- a/meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrattachmentsfield.cpp Tue May 25 12:23:16 2010 +0300
+++ b/meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrattachmentsfield.cpp Wed Jun 09 09:22:57 2010 +0300
@@ -316,15 +316,10 @@
// Layout field title
if( iTitle )
{
- TAknLayoutText labelLayout(
- NMRLayoutManager::GetLayoutText(
- firstRowRect,
- NMRLayoutManager::EMRTextLayoutTextEditor ) );
-
- iTitle->SetRect( labelLayout.TextRect() );
-
- // Setting font also for the label. Failures are ignored.
- TRAP_IGNORE( iTitle->SetFont( labelLayout.Font() ) );
+ TAknTextComponentLayout labelLayout =
+ NMRLayoutManager::GetTextComponentLayout(
+ NMRLayoutManager::EMRTextLayoutTextEditor );
+ AknLayoutUtils::LayoutLabel( iTitle, firstRowRect, labelLayout );
}
TRect edwinRect( 0, 0, 0, 0 );
@@ -501,7 +496,7 @@
iAttCommandHandler->HandleAttachmentCommandL(
aCommand,
*currentLink );
-
+
HandleTactileFeedbackL();
handled = ETrue;
@@ -845,7 +840,7 @@
if( Rect().Contains( aPosition ) )
{
HandleTactileFeedbackL();
-
+
ret = AddAttachmentL();
}
}
@@ -857,7 +852,7 @@
iFieldIcon->Rect().Contains( aPosition ) )
{
HandleTactileFeedbackL();
-
+
ret = AddAttachmentL();
}
}