QTfrontend/mapContainer.cpp
changeset 1211 94c4f20abdda
parent 1210 bfed1b89bc85
child 1214 090f94cd663e
--- a/QTfrontend/mapContainer.cpp	Thu Aug 14 14:04:45 2008 +0000
+++ b/QTfrontend/mapContainer.cpp	Thu Aug 14 14:24:45 2008 +0000
@@ -70,8 +70,12 @@
 	lwThemes = new QListWidget(this);
 	lwThemes->setMinimumHeight(30);
 	lwThemes->setFixedWidth(100);
-	for (int i = 0; i < Themes->size(); ++i)
-		lwThemes->addItem(Themes->at(i));
+	for (int i = 0; i < Themes->size(); ++i) {
+		QListWidgetItem * lwi = new QListWidgetItem();
+		lwi->setText(Themes->at(i));
+		lwi->setTextAlignment(Qt::AlignHCenter);
+		lwThemes->addItem(lwi);
+	}
 	
 	gbTLayout->addWidget(lwThemes);
 	lwThemes->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Minimum);