Fill themes list with themes
authorunc0rr
Thu, 14 Aug 2008 14:24:45 +0000
changeset 1211 94c4f20abdda
parent 1210 bfed1b89bc85
child 1212 9890facbe047
Fill themes list with themes
QTfrontend/main.cpp
QTfrontend/mapContainer.cpp
--- a/QTfrontend/main.cpp	Thu Aug 14 14:04:45 2008 +0000
+++ b/QTfrontend/main.cpp	Thu Aug 14 14:24:45 2008 +0000
@@ -103,12 +103,16 @@
 				"border-radius: 12px;"
 				"border-color: orange;"
 				"background-color: #0d0544;"
+//				"alternate-background-color: #2f213a;" //what's it?
 				"color: orange;"
 				"font: bold 14px;"
 				"}"
 			"QListWidget:hover{"
 				"border-color: yellow;"
 				"}"
+//			"QListWidget::item:alternate{"
+//				"background: #2f213a;"
+//				"}"
 
 			"QSpinBox{"
 				"border: solid;"
--- 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);