QTfrontend/ui/widget/mapContainer.cpp
changeset 13248 b0022324fb4e
parent 13246 0c98d3b249f7
child 13249 d2b58cf339fe
equal deleted inserted replaced
13247:4df9d8cedf7f 13248:b0022324fb4e
   597 void HWMapContainer::setRandomTheme()
   597 void HWMapContainer::setRandomTheme()
   598 {
   598 {
   599     QAbstractItemModel * tmodel;
   599     QAbstractItemModel * tmodel;
   600 
   600 
   601     if (m_withoutDLC)
   601     if (m_withoutDLC)
   602         tmodel = m_themeModel->withoutDLC();
   602         tmodel = m_themeModel->withoutDLCOrHidden();
   603     else
   603     else
   604         tmodel = m_themeModel;
   604         tmodel = m_themeModel->withoutHidden();
   605 
   605 
   606     if(!tmodel->rowCount()) return;
   606     if(!tmodel->rowCount()) return;
   607     quint32 themeNum = rand() % tmodel->rowCount();
   607     quint32 themeNum = rand() % tmodel->rowCount();
   608     updateTheme(tmodel->index(themeNum,0));
   608     updateTheme(tmodel->index(themeNum,0));
   609     emit themeChanged(m_theme);
   609     emit themeChanged(m_theme);