Added callback to display player names of connected players.

This commit is contained in:
lotodore
2007-04-08 20:35:42 +00:00
parent e89b543a92
commit 07a0e01620
12 changed files with 32 additions and 8 deletions
@@ -41,10 +41,10 @@ void startNetworkGameDialogImpl::cancel() {
}
void startNetworkGameDialogImpl::addConnectedPlayer(std::string playerName) {
void startNetworkGameDialogImpl::addConnectedPlayer(QString playerName) {
QTreeWidgetItem *item = new QTreeWidgetItem(treeWidget,0);
item->setData(0, 0, QString::fromUtf8(playerName.c_str()));
item->setData(0, 0, playerName);
}
void startNetworkGameDialogImpl::keyPressEvent ( QKeyEvent * event ) {