| 676 | { |
| 677 | return; |
| 678 | } |
| 679 | auto dockWidgetList = findChildren<QDockWidget*>(); |
| 680 | for (const auto otherDock: dockWidgetList) |
| 681 | { |
| 682 | if (otherDock == dockWidget) |
| 683 | { |
| 684 | continue; |
| 685 | } |
| 686 | if (dockWidgetArea(otherDock) == area && otherDock->windowTitle() == targetDockTitle) |
| 687 | { |
| 688 | tabifyDockWidget(otherDock, dockWidget); |
| 689 | return; |
| 690 | } |
| 691 | } |
| 692 | // 未找到 按Area添加 |
| 693 | addDockWidget(area, dockWidget); |
nothing calls this directly
no outgoing calls
no test coverage detected