Frontend:
* Added small icons to theme selection as well (open for discussion - like it or not?)
--- 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;"
"}"
)
);