QTfrontend/mapContainer.cpp
changeset 3869 d3d39bbb05f2
parent 3865 0b1c426b035f
child 3870 e3f778c95d1c
equal deleted inserted replaced
3868:aaac0e8641c6 3869:d3d39bbb05f2
   151     lwThemes->setMinimumHeight(30);
   151     lwThemes->setMinimumHeight(30);
   152     lwThemes->setFixedWidth(120);
   152     lwThemes->setFixedWidth(120);
   153     for (int i = 0; i < Themes->size(); ++i) {
   153     for (int i = 0; i < Themes->size(); ++i) {
   154         QListWidgetItem * lwi = new QListWidgetItem();
   154         QListWidgetItem * lwi = new QListWidgetItem();
   155         lwi->setText(Themes->at(i));
   155         lwi->setText(Themes->at(i));
   156         lwi->setTextAlignment(Qt::AlignHCenter);
   156         lwi->setIcon(QIcon(QString("%1/Themes/%2/icon.png").arg(datadir->absolutePath()).arg(Themes->at(i))));
       
   157         //lwi->setTextAlignment(Qt::AlignHCenter);
   157         lwThemes->addItem(lwi);
   158         lwThemes->addItem(lwi);
   158     }
   159     }
   159     connect(lwThemes, SIGNAL(currentRowChanged(int)), this, SLOT(themeSelected(int)));
   160     connect(lwThemes, SIGNAL(currentRowChanged(int)), this, SLOT(themeSelected(int)));
   160 
   161 
   161     // override default style to tighten up theme scroller
   162     // override default style to tighten up theme scroller
   165             "border-width: 0px;"
   166             "border-width: 0px;"
   166             "border-radius: 0px;"
   167             "border-radius: 0px;"
   167             "border-color: transparent;"
   168             "border-color: transparent;"
   168             "background-color: #0d0544;"
   169             "background-color: #0d0544;"
   169             "color: #ffcc00;"
   170             "color: #ffcc00;"
   170             "font: bold 14px;"
   171             "font: bold 13px;"
   171             "}"
   172             "}"
   172         )
   173         )
   173     );
   174     );
   174 
   175 
   175     gbTLayout->addWidget(lwThemes);
   176     gbTLayout->addWidget(lwThemes);