changeset 7723 | ca05b576ec74 |
child 7725 | 4ad05a478c6c |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/QTfrontend/model/playerslistmodel.cpp Sat Oct 06 01:09:41 2012 +0400 @@ -0,0 +1,14 @@ +#include "playerslistmodel.h" + +PlayersListModel::PlayersListModel(QObject *parent) : + QStringListModel(parent) +{ + +} + +void PlayersListModel::addPlayer(const QString & nickname) +{ + insertRows(rowCount(), 1); + + setData(index(rowCount() - 1), nickname); +}