QTfrontend/mapContainer.cpp
changeset 1211 94c4f20abdda
parent 1210 bfed1b89bc85
child 1214 090f94cd663e
equal deleted inserted replaced
1210:bfed1b89bc85 1211:94c4f20abdda
    68 	
    68 	
    69 	QVBoxLayout * gbTLayout = new QVBoxLayout(gbThemes);
    69 	QVBoxLayout * gbTLayout = new QVBoxLayout(gbThemes);
    70 	lwThemes = new QListWidget(this);
    70 	lwThemes = new QListWidget(this);
    71 	lwThemes->setMinimumHeight(30);
    71 	lwThemes->setMinimumHeight(30);
    72 	lwThemes->setFixedWidth(100);
    72 	lwThemes->setFixedWidth(100);
    73 	for (int i = 0; i < Themes->size(); ++i)
    73 	for (int i = 0; i < Themes->size(); ++i) {
    74 		lwThemes->addItem(Themes->at(i));
    74 		QListWidgetItem * lwi = new QListWidgetItem();
       
    75 		lwi->setText(Themes->at(i));
       
    76 		lwi->setTextAlignment(Qt::AlignHCenter);
       
    77 		lwThemes->addItem(lwi);
       
    78 	}
    75 	
    79 	
    76 	gbTLayout->addWidget(lwThemes);
    80 	gbTLayout->addWidget(lwThemes);
    77 	lwThemes->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Minimum);
    81 	lwThemes->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Minimum);
    78 	
    82 	
    79 
    83