src/controllers/nicknames/NicknamesModel.cpp
Nickname NicknamesModel::getItemFromRow(std::vector<QStandardItem *> &row,
                                        const Nickname &original)
{
    return Nickname{row[0]->data(Qt::DisplayRole).toString(),
                    row[1]->data(Qt::DisplayRole).toString()};
}
// turn a vector item into a model row
turn a vector item into a model row
turn a vector item into a model row
Nickname NicknamesModel::getItemFromRow(std::vector<QStandardItem *> &row,
                                        const Nickname &original)
{
    return Nickname{row[0]->data(Qt::DisplayRole).toString(),
                    row[1]->data(Qt::DisplayRole).toString()};
}
Nickname NicknamesModel :: getItemFromRow ( std :: vector < QStandardItem * > & row , const Nickname & original ) { return Nickname { row [ 0 ] -> data ( Qt :: DisplayRole ) . toString ( ) , row [ 1 ] -> data ( Qt :: DisplayRole ) . toString ( ) } ; }
turn a vector item into a model row
turn a vector item into a model row