QTfrontend/model/roomslistmodel.cpp
changeset 10391 ce3ccc45d790
parent 10108 c68cf030eded
child 10511 c33b2f001730
equal deleted inserted replaced
10390:13bfbade06a5 10391:ce3ccc45d790
   130             // special names
   130             // special names
   131             if (content[0] == '+')
   131             if (content[0] == '+')
   132             {
   132             {
   133                 if (content == "+rnd+") return tr("Random Map");
   133                 if (content == "+rnd+") return tr("Random Map");
   134                 if (content == "+maze+") return tr("Random Maze");
   134                 if (content == "+maze+") return tr("Random Maze");
       
   135                 if (content == "+perlin+") return tr("Random Perlin");
   135                 if (content == "+drawn+") return tr("Hand-drawn");
   136                 if (content == "+drawn+") return tr("Hand-drawn");
   136             }
   137             }
   137 
   138 
   138             // prefix ? if map not available
   139             // prefix ? if map not available
   139             if (!m_staticMapModel->mapExists(content) &&
   140             if (!m_staticMapModel->mapExists(content) &&
   147     // dye map names red if map not available
   148     // dye map names red if map not available
   148     if (role == Qt::ForegroundRole)
   149     if (role == Qt::ForegroundRole)
   149     {
   150     {
   150         if (content == "+rnd+" ||
   151         if (content == "+rnd+" ||
   151             content == "+maze+" ||
   152             content == "+maze+" ||
       
   153             content == "+perlin+" ||
   152             content == "+drawn+" ||
   154             content == "+drawn+" ||
   153             m_staticMapModel->mapExists(content) ||
   155             m_staticMapModel->mapExists(content) ||
   154             m_missionMapModel->mapExists(content))
   156             m_missionMapModel->mapExists(content))
   155             return QVariant();
   157             return QVariant();
   156         else
   158         else