equal
deleted
inserted
replaced
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); |