--- 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);