From 296e958cca0345cfa1125f95bba0c3f71cfac466 Mon Sep 17 00:00:00 2001 From: chenjun Date: Sat, 9 Oct 2021 13:20:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复单元测试问题代码,添加固定区域插件或添加托盘插件接口不一样 Log: 修复单元测试问题代码 Task: https://pms.uniontech.com/zentao/task-view-79863.html Change-Id: I4f1762794e680246cf31c45d60301c69deb663f0 --- tests/window/ut_mainpanelcontrol.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/window/ut_mainpanelcontrol.cpp b/tests/window/ut_mainpanelcontrol.cpp index bf6f3b45c..19974cab9 100644 --- a/tests/window/ut_mainpanelcontrol.cpp +++ b/tests/window/ut_mainpanelcontrol.cpp @@ -167,9 +167,9 @@ TEST_F(Test_MainPanelControl, moveItem) PluginsItem fixedPluginItem1(&fixedPlugin, "monitor", "1.2.1"); PluginsItem fixedPluginItem2(&fixedPlugin, "monitor", "1.2.1"); - panel.addPluginAreaItem(0, &fixedPluginItem1); - panel.addPluginAreaItem(0, &fixedPluginItem2); - panel.moveItem(&fixedPluginItem1, &fixedPluginItem1); + panel.addFixedAreaItem(0, &fixedPluginItem1); + panel.addFixedAreaItem(0, &fixedPluginItem2); + panel.moveItem(&fixedPluginItem1, &fixedPluginItem2); // dropTargetItem test panel.dropTargetItem(&dockItem1, QPoint(0, 0));