| 244 | } |
| 245 | |
| 246 | int addEmptyRow(int position) |
| 247 | { |
| 248 | if(m_locked) |
| 249 | { |
| 250 | return -1; |
| 251 | } |
| 252 | if(position < 0 || position >= rowCount()) |
| 253 | { |
| 254 | position = rowCount(); |
| 255 | } |
| 256 | beginInsertRows(QModelIndex(), position, position); |
| 257 | m_servers.insert(position, Server()); |
| 258 | endInsertRows(); |
| 259 | scheduleSave(); |
| 260 | return position; |
| 261 | } |
| 262 | |
| 263 | bool removeRow(int row) |
| 264 | { |
no test coverage detected