camerauis/cameraxui/cxui/src/cxuisettingradiobuttonlistmodel.cpp
changeset 55 0da2a5b56583
parent 41 67457b2ffb33
equal deleted inserted replaced
52:7e18d488ac5f 55:0da2a5b56583
   115 */
   115 */
   116 void CxuiSettingRadioButtonListModel::setItems(QStringList items)
   116 void CxuiSettingRadioButtonListModel::setItems(QStringList items)
   117 {
   117 {
   118     CX_DEBUG_ENTER_FUNCTION();
   118     CX_DEBUG_ENTER_FUNCTION();
   119     mItems = items;
   119     mItems = items;
       
   120 
       
   121     // Notify radio button list that the data content has changed.
       
   122     if (mItems.size() > 0) {
       
   123         const QModelIndex start = index(0, 0);
       
   124         const QModelIndex end = index(mItems.size() - 1, 0);
       
   125         emit dataChanged(start, end);
       
   126     }
       
   127 
       
   128     // Relayouting needed.
       
   129     emit layoutChanged();
       
   130 
   120     CX_DEBUG_EXIT_FUNCTION();
   131     CX_DEBUG_EXIT_FUNCTION();
   121 }
   132 }
   122 
   133 
   123 
   134 
   124 /*!
   135 /*!