This commit is contained in:
doitux
2007-05-02 22:46:29 +00:00
parent 1413961624
commit d7e2bf9a2e
6 changed files with 13 additions and 0 deletions
@@ -47,6 +47,14 @@ void startNetworkGameDialogImpl::addConnectedPlayer(QString playerName) {
item->setData(0, 0, playerName);
}
void startNetworkGameDialogImpl::removePlayer(QString playerName) {
QList<QTreeWidgetItem *> list = treeWidget->findItems(playerName, Qt::MatchExactly, 0);
if(!list.empty()) {
treeWidget->takeTopLevelItem(treeWidget->indexOfTopLevelItem(list[0]));
}
}
void startNetworkGameDialogImpl::keyPressEvent ( QKeyEvent * event ) {