QTfrontend/pages.cpp
changeset 2442 228757f6c54d
parent 2437 10e4b5fc0d93
child 2443 fececcbc2189
equal deleted inserted replaced
2441:9ae320bf2986 2442:228757f6c54d
   867 		roomsList->setItem(r, 0, item);
   867 		roomsList->setItem(r, 0, item);
   868 
   868 
   869 		item = new QTableWidgetItem(list[i + 2]); // number of clients
   869 		item = new QTableWidgetItem(list[i + 2]); // number of clients
   870 		item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
   870 		item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
   871 		item->setTextAlignment(Qt::AlignCenter);
   871 		item->setTextAlignment(Qt::AlignCenter);
   872 		item->setToolTip(tr("There are %1 clients connected to this room.").arg(list[i + 2]));
   872 		item->setToolTip(tr("There are %1 clients connected to this room.", "", list[i + 2].toInt()).arg(list[i + 2]));
   873 		roomsList->setItem(r, 1, item);
   873 		roomsList->setItem(r, 1, item);
   874 
   874 
   875 		item = new QTableWidgetItem(list[i + 3]); // number of teams
   875 		item = new QTableWidgetItem(list[i + 3]); // number of teams
   876 		item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
   876 		item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
   877 		item->setTextAlignment(Qt::AlignCenter);
   877 		item->setTextAlignment(Qt::AlignCenter);
   878 		item->setToolTip(tr("There are %1 teams participating in this room.").arg(list[i + 3]));
   878 		item->setToolTip(tr("There are %1 teams participating in this room.", "", list[i + 3].toInt()).arg(list[i + 3]));
   879 		roomsList->setItem(r, 2, item);
   879 		roomsList->setItem(r, 2, item);
   880 
   880 
   881 		item = new QTableWidgetItem(list[i + 4]); // name of host
   881 		item = new QTableWidgetItem(list[i + 4]); // name of host
   882 		item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
   882 		item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
   883 		item->setToolTip(tr("%1 is the host. He may adjust settings and start the game.").arg(list[i + 4]));
   883 		item->setToolTip(tr("%1 is the host. He may adjust settings and start the game.").arg(list[i + 4]));