add patch
[framework/osp/uifw.git] / src / ui / controls / FUiCtrl_TableViewItemProviderAdaptor.cpp
index 6223711..1cca16a 100644 (file)
@@ -126,8 +126,6 @@ _TableViewItemProviderAdaptor::LoadItem(int groupIndex, int itemIndex)
        TableViewGroupItem* pGroupItem = null;
        TableViewItemTag index = {groupIndex, itemIndex};
 
-//     Label* pLabel = null;
-
        if (itemIndex == -1)
        {
                if (__style == TABLE_VIEW_STYLE_SIMPLE)
@@ -153,9 +151,11 @@ _TableViewItemProviderAdaptor::LoadItem(int groupIndex, int itemIndex)
                                if (pHeaderItem == null)
                                {
                                        GetDefaultItem()->SetAppInfo(null);
+                                       __pDefaultItem->SetFocusable(false);
                                        return __pDefaultItem;
                                }
 
+                               pHeaderItem->SetFocusable(false);
                                return pHeaderItem;
                        }
 
@@ -163,6 +163,7 @@ _TableViewItemProviderAdaptor::LoadItem(int groupIndex, int itemIndex)
                        if (pGroupItem == null)
                        {
                                GetDefaultItem()->SetAppInfo(null);
+                               __pDefaultItem->SetFocusable(false);
                                return __pDefaultItem;
                        }
 
@@ -180,6 +181,7 @@ _TableViewItemProviderAdaptor::LoadItem(int groupIndex, int itemIndex)
                                        Tizen::Base::String contents = __pTableViewProvider->GetSectionHeader(groupIndex);
                                        HorizontalAlignment contentsAlignment = __pTableViewPresenter->GetSectionHeaderTextHorizontalAlignment(groupIndex);
                                        pItemCore->SetSectionHeaderFooterContents(contents, contentsAlignment, true);
+                                       pItemCore->SetFocusable(false);
                                }
                        }
                }
@@ -190,6 +192,7 @@ _TableViewItemProviderAdaptor::LoadItem(int groupIndex, int itemIndex)
                if (pItem == null)
                {
                        GetDefaultItem()->SetAppInfo(null);
+                       __pDefaultItem->SetFocusable(false);
                        return __pDefaultItem;
                }
 
@@ -207,6 +210,7 @@ _TableViewItemProviderAdaptor::LoadItem(int groupIndex, int itemIndex)
                                Tizen::Base::String contents = __pTableViewProvider->GetSectionFooter(groupIndex);
                                HorizontalAlignment contentsAlignment = __pTableViewPresenter->GetSectionFooterTextHorizontalAlignment(groupIndex);
                                pItemCore->SetSectionHeaderFooterContents(contents, contentsAlignment, false);
+                               pItemCore->SetFocusable(false);
                        }
                }
        }