Frontend:
authorsmaxx
Tue, 14 Sep 2010 21:07:06 +0200
changeset 3869 d3d39bbb05f2
parent 3868 aaac0e8641c6
child 3870 e3f778c95d1c
Frontend: * Added small icons to theme selection as well (open for discussion - like it or not?)
QTfrontend/mapContainer.cpp
--- a/QTfrontend/mapContainer.cpp	Tue Sep 14 19:06:59 2010 +0200
+++ b/QTfrontend/mapContainer.cpp	Tue Sep 14 21:07:06 2010 +0200
@@ -153,7 +153,8 @@
     for (int i = 0; i < Themes->size(); ++i) {
         QListWidgetItem * lwi = new QListWidgetItem();
         lwi->setText(Themes->at(i));
-        lwi->setTextAlignment(Qt::AlignHCenter);
+        lwi->setIcon(QIcon(QString("%1/Themes/%2/icon.png").arg(datadir->absolutePath()).arg(Themes->at(i))));
+        //lwi->setTextAlignment(Qt::AlignHCenter);
         lwThemes->addItem(lwi);
     }
     connect(lwThemes, SIGNAL(currentRowChanged(int)), this, SLOT(themeSelected(int)));
@@ -167,7 +168,7 @@
             "border-color: transparent;"
             "background-color: #0d0544;"
             "color: #ffcc00;"
-            "font: bold 14px;"
+            "font: bold 13px;"
             "}"
         )
     );