Commit 56ca7ca
committed
QRM(A): Allow initializing a raw nullptr with an object
The ownership mess is not a problem if there's nothing stored at the
position yet, and it allows gradually populating a row of raw object
pointers. Hook newly inserted objects up to the autoConnectProperties
mechanism.
Add test case.
Change-Id: Ie029a2a358e6a1ed5f24869039be9c2ad542dff9
Reviewed-by: Artem Dyomin <[email protected]>1 parent 55d5609 commit 56ca7ca
File tree
2 files changed
+34
-15
lines changed- src/corelib/itemmodels
- tests/auto/corelib/itemmodels/qrangemodeladapter
2 files changed
+34
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1373 | 1373 | | |
1374 | 1374 | | |
1375 | 1375 | | |
1376 | | - | |
1377 | 1376 | | |
1378 | 1377 | | |
1379 | 1378 | | |
1380 | 1379 | | |
1381 | 1380 | | |
1382 | 1381 | | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
1389 | 1397 | | |
1390 | 1398 | | |
1391 | 1399 | | |
1392 | 1400 | | |
1393 | 1401 | | |
1394 | 1402 | | |
| 1403 | + | |
1395 | 1404 | | |
1396 | 1405 | | |
1397 | 1406 | | |
| |||
1405 | 1414 | | |
1406 | 1415 | | |
1407 | 1416 | | |
1408 | | - | |
| 1417 | + | |
1409 | 1418 | | |
1410 | 1419 | | |
1411 | | - | |
| 1420 | + | |
1412 | 1421 | | |
1413 | 1422 | | |
1414 | 1423 | | |
| |||
1463 | 1472 | | |
1464 | 1473 | | |
1465 | 1474 | | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1466 | 1482 | | |
1467 | 1483 | | |
1468 | 1484 | | |
| |||
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2631 | 2631 | | |
2632 | 2632 | | |
2633 | 2633 | | |
2634 | | - | |
2635 | | - | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + | |
2636 | 2637 | | |
2637 | 2638 | | |
2638 | 2639 | | |
| |||
2684 | 2685 | | |
2685 | 2686 | | |
2686 | 2687 | | |
2687 | | - | |
| 2688 | + | |
2688 | 2689 | | |
2689 | 2690 | | |
2690 | 2691 | | |
| |||
2698 | 2699 | | |
2699 | 2700 | | |
2700 | 2701 | | |
2701 | | - | |
2702 | | - | |
2703 | | - | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
2704 | 2707 | | |
2705 | 2708 | | |
2706 | 2709 | | |
| |||
0 commit comments