QTfrontend/model/playerslistmodel.cpp
author unc0rr
Sat, 06 Oct 2012 01:09:41 +0400
changeset 7723 ca05b576ec74
child 7725 4ad05a478c6c
permissions -rw-r--r--
Start moving to players list model.

#include "playerslistmodel.h"

PlayersListModel::PlayersListModel(QObject *parent) :
    QStringListModel(parent)
{

}

void PlayersListModel::addPlayer(const QString & nickname)
{
    insertRows(rowCount(), 1);

    setData(index(rowCount() - 1), nickname);
}