QTfrontend/ui/widget/mapContainer.cpp
changeset 9745 258c320256dc
parent 9744 1ee4842a9c86
child 10108 c68cf030eded
equal deleted inserted replaced
9744:1ee4842a9c86 9745:258c320256dc
   250     setMazeSize(0);
   250     setMazeSize(0);
   251     setTemplateFilter(0);
   251     setTemplateFilter(0);
   252     staticMapChanged(m_staticMapModel->index(0, 0));
   252     staticMapChanged(m_staticMapModel->index(0, 0));
   253     missionMapChanged(m_missionMapModel->index(0, 0));
   253     missionMapChanged(m_missionMapModel->index(0, 0));
   254     changeMapType(MapModel::GeneratedMap);
   254     changeMapType(MapModel::GeneratedMap);
   255     setRandomTheme();
       
   256 }
   255 }
   257 
   256 
   258 void HWMapContainer::setImage(const QImage newImage)
   257 void HWMapContainer::setImage(const QImage newImage)
   259 {
   258 {
   260     QPixmap px(m_previewSize);
   259     QPixmap px(m_previewSize);
   601 
   600 
   602 void HWMapContainer::showEvent(QShowEvent * event)
   601 void HWMapContainer::showEvent(QShowEvent * event)
   603 {
   602 {
   604     if (!m_previewEnabled) {
   603     if (!m_previewEnabled) {
   605         m_previewEnabled = true;
   604         m_previewEnabled = true;
       
   605         setRandomTheme();
   606         updatePreview();
   606         updatePreview();
   607     }
   607     }
   608     QWidget::showEvent(event);
   608     QWidget::showEvent(event);
   609 }
   609 }
   610 
   610