QTfrontend/pages.cpp
changeset 2654 622d89be57b6
parent 2651 9977d8bd95a3
child 2703 fbde0d971ba6
equal deleted inserted replaced
2653:4922d5fe5316 2654:622d89be57b6
   851 
   851 
   852 	roomsList->setRowCount(list.size() / 8);
   852 	roomsList->setRowCount(list.size() / 8);
   853 	for(int i = 0, r = 0; i < list.size(); i += 8, r++)
   853 	for(int i = 0, r = 0; i < list.size(); i += 8, r++)
   854 	{
   854 	{
   855 		QTableWidgetItem * item;
   855 		QTableWidgetItem * item;
   856 		item = new QTableWidgetItem(list[i + 1].left(30)); // room name
   856 		item = new QTableWidgetItem(list[i + 1]); // room name
   857 		item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
   857 		item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
   858 		
   858 		
   859 		// pick appropriate room icon and tooltip (game in progress yes/no; later maybe locked rooms etc.)
   859 		// pick appropriate room icon and tooltip (game in progress yes/no; later maybe locked rooms etc.)
   860 		if(list[i].compare("True"))
   860 		if(list[i].compare("True"))
   861 		{
   861 		{