uifw/ganes/src/HgDoubleTextList.cpp
branchRCL_3
changeset 6 9f56a4e1b8ab
parent 0 2f259fa3e83a
--- a/uifw/ganes/src/HgDoubleTextList.cpp	Fri Mar 12 15:43:43 2010 +0200
+++ b/uifw/ganes/src/HgDoubleTextList.cpp	Mon Mar 15 12:41:34 2010 +0200
@@ -24,6 +24,7 @@
 #include "HgIndicatorManager.h"
 #include "HgDrawUtils.h"
 #include "HgConstants.h"
+#include "HgScrollbar.h"
 
 #include <AknsUtils.h>
 #include <AknUtils.h>
@@ -87,7 +88,8 @@
         iLayoutData->SetTitleLayout(i, list_double_pane_t1( i ));
     iLayoutData->SetTextLayout(list_double_pane_t2( 2 ));
     iLayoutData->SetFirstIndicatorLayout(list_double_pane_g2(0));
-    iLayoutData->SetSecondIndicatorLayout(list_double_pane_g1(1));
+    TInt variety = iScrollbar && !iScrollbar->IsStatic() ? 1 : 0;
+    iLayoutData->SetSecondIndicatorLayout(list_double_pane_g1(variety));
     
     // Get the Row rect.
     TAknLayoutRect layout;
@@ -183,3 +185,14 @@
     
     }
 
+// -----------------------------------------------------------------------------
+// CHgDoubleTextList::HandleScrollbarVisibilityChange()
+// -----------------------------------------------------------------------------
+//
+void CHgDoubleTextList::HandleScrollbarVisibilityChange( TBool aVisible )
+    {
+    TInt variety = aVisible ? 1 : 0;
+    iLayoutData->SetSecondIndicatorLayout(list_double_pane_g1(variety));
+    }
+
+// End of file