equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Hedgewars, a free turn based strategy game |
2 * Hedgewars, a free turn based strategy game |
3 * Copyright (c) 2006-2007 Igor Ulyanov <iulyanov@gmail.com> |
3 * Copyright (c) 2012 Andrey Korotaev <unC0Rr@gmail.com> |
4 * Copyright (c) 2007-2012 Andrey Korotaev <unC0Rr@gmail.com> |
|
5 * |
4 * |
6 * This program is free software; you can redistribute it and/or modify |
5 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License as published by |
6 * it under the terms of the GNU General Public License as published by |
8 * the Free Software Foundation; version 2 of the License |
7 * the Free Software Foundation; version 2 of the License |
9 * |
8 * |
217 |
216 |
218 |
217 |
219 qvar.setValue(mapInfo); |
218 qvar.setValue(mapInfo); |
220 item->setData(qvar, Qt::UserRole + 1); |
219 item->setData(qvar, Qt::UserRole + 1); |
221 |
220 |
222 if (mapInfo.type == Invalid) |
|
223 Q_ASSERT(false); |
|
224 |
|
225 return item; |
221 return item; |
226 } |
222 } |