QTfrontend/pages.cpp
changeset 2752 df01bbbd0e1a
parent 2747 7889a3a9724f
child 2762 2fbc8d35eb52
equal deleted inserted replaced
2751:2a3091b13ce4 2752:df01bbbd0e1a
   242 	list = tmpdir.entryList(QStringList("*.png"));
   242 	list = tmpdir.entryList(QStringList("*.png"));
   243 	for (QStringList::Iterator it = list.begin(); it != list.end(); ++it )
   243 	for (QStringList::Iterator it = list.begin(); it != list.end(); ++it )
   244 	{
   244 	{
   245 		QPixmap pix(datadir->absolutePath() + "/Graphics/Flags/" + *it);
   245 		QPixmap pix(datadir->absolutePath() + "/Graphics/Flags/" + *it);
   246 		QIcon icon(pix.copy(0, 0, 22, 15));
   246 		QIcon icon(pix.copy(0, 0, 22, 15));
   247 		CBFlag->addItem(icon, (*it).replace(QRegExp("^(.*)\\.png"), "\\1"));
   247 		if(it->compare("cpu.png")) // skip cpu flag
       
   248 			CBFlag->addItem(icon, (*it).replace(QRegExp("^(.*)\\.png"), "\\1"));
   248 	}
   249 	}
   249 
   250 
   250 	vbox1->addStretch();
   251 	vbox1->addStretch();
   251 	vbox2->addStretch();
   252 	vbox2->addStretch();
   252 //	vbox3->addStretch();
   253 //	vbox3->addStretch();