camerauis/cameraxui/cxui/src/cxuisettingradiobuttonlistmodel.cpp
changeset 60 a289dde0a1d6
parent 37 64817133cd1d
equal deleted inserted replaced
56:01e205c615b9 60:a289dde0a1d6
   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 /*!